#78915 - 2002-06-11 03:26 PM
Re: Instr() Behaviour
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Lonkero, quote: is 0 length string same as if it contains null? NOT.
Well, to be pedantic yes it is. The null character Chr(0) terminates a string. Therefore a string is actually all the character you can see, plus a Chr(0) at the end that you can't.
The string "Hi!" is actually four characters long - 'H' 'i' '!' '\0'
The empty string "" is 1 character long - '\0'
This is the core reason why you cannot easily manipulate binary data as strings.
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 555 anonymous users online.
|
|
|