String length in bytes

  • Thread starter Thread starter guy
  • Start date Start date
G

guy

Being lazy here...

How many bytes are used to store a string?

I would guess the (number of characters * 2) + 4

is that correct?

cheers

Guy
 
guy said:
Being lazy here...

How many bytes are used to store a string?

I would guess the (number of characters * 2) + 4

is that correct?

Well, where did you get the 4 from? I believe it's more like 12 or 16 -
but the basics are right.
 
Back
Top