length() returns the length in characters, which for ASCII is also the
number of bytes.  To get the bits, just multiply by 8.

If you are using a Unicode character set instead, I'm not too sure what will
be returned, or how you can convert it to bits.

Rob

-----Original Message-----
From: Dan Muey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:30 AM
To: [EMAIL PROTECTED]
Subject: Length() is bits/bytes or neither


I know that the number returned by the length function is the number of
characters.
With ascii text is that the bits or bytes also?

If not is there a function similar to length() that tells you the bits or
bytes of a string or a way to figure that with the return value of length?

TIA

Dan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to