LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue about output of "To upper case"

If the input of "to upper case" is "\C0\00a", then the output will be "?Aa"
0 Kudos
Message 1 of 20
(4,132 Views)

The easiest way to answer that question is to just try it out yourself.Smiley Wink

And the answer is no.  It will be \C0\00A  since there is no "upper case" version of the characters C0 and 00 hex.

0 Kudos
Message 2 of 20
(4,121 Views)


@hrongfu wrote:
If the input of "to upper case" is "\C0\00a", then the output will be "?Aa"


I am not sure what to make of your post. Is is a question, a comment, or a bug report???
 
If your string controls/indicators are set to \-codes and you are getting "?Aa", something is wrong. What is your LabVIEW version? Can you attach an example that shows the problem?
 
 
The normal and expected behavior is as follows, and that's what I see using LabVIEW.
 
Assuming that your "\C0\00a" string is actually in \-codes display, we have 3 characters:
  1. \C0 is already uppercase, so it won't do anything to it
  2. \00 is not a printable character, so it won't change
  3. a will chage to uppercase A

Conversely, a "to lower case" would turn your string into "\E0\00a" (in \-code display)

0 Kudos
Message 3 of 20
(4,104 Views)

It is a bug report.

And \C0\00a" is a '\' code dispaly, also "?Aa".

 I have tested it on labview 7.1

My Vi is attached

0 Kudos
Message 4 of 20
(4,089 Views)

It is a bug report.

And \C0\00a" is a '\' code dispaly, also "?Aa".

 I have tested it on labview 7.1

My Vi is attached

0 Kudos
Message 5 of 20
(4,087 Views)
Thanks for the clarification. I no longer have access to 7.1 to test this, but e.g. in 8.2 everything works just fine.
 
 
'Seems it got fixed in newer versions.
 

Message Edited by altenbach on 10-27-2007 11:27 PM

0 Kudos
Message 6 of 20
(4,085 Views)
I still have 6.1. Worked fine at that time.
Chilly Charly    (aka CC)
0 Kudos
Message 7 of 20
(4,079 Views)
My output:
...Confused...
0 Kudos
Message 8 of 20
(4,072 Views)
Sorry hrongfu
I have tested your vi with LabVIEW 7.1. No bug !!!
No idea about what's wrong with your computer. Something corrupted in your setup ?
Chilly Charly    (aka CC)
Message 9 of 20
(4,047 Views)

This is the difference

 

陈树学
QQ:276509891 .
EMAIL:CSXCS_366@126.COM
qq群:78561268 80754347 37591940
http://labview.weebly.com/
新书《LabVIEW实用工具详解》已经发售,敬请关注。
0 Kudos
Message 10 of 20
(4,046 Views)