LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know the no. of bytes in a String Control Function?


"jpeters" <x@no.email> wrote in message
news:1228327811329-818493@exchange.ni.com...
> Length is in bytes not characters.&nbsp; This is one of the reasons that
dealing with multibyte text (Japanese) can be much more difficult than
single byte character sets.&nbsp;&nbsp;Jeff P

So I ask again. What does the String Length return? The number of characters
or the number of bytes.

Regards,

Wiebe.


0 Kudos
Message 11 of 13
(959 Views)

So I ask again. What does the String Length return? The number of characters
or the number of bytes.

 

Like I said, String Length returns bytes, not characters.  String Length doesn't know about character sets.  It really isn't fundamentally different than getting the length of a byte array.

 

 

0 Kudos
Message 12 of 13
(941 Views)
Thanks for the answer. Didn't realise you ment String Length by Length.
Since you answered to a new branch, I didn't think your post was a response
to my question.



0 Kudos
Message 13 of 13
(932 Views)