[fpc-pascal] Empty string

Damien Gerard milipili at shikami.org
Thu Mar 6 18:54:39 CET 2008


Le Mar 6, 2008 à 5:26 PM, Lucas Vasconcelos a écrit :

> You can try access a UTF8String lika a array.
>
> So, you can replace your test by
>
> if mystringvar[0] <> '' then ...



I thought string should be accessed from 1 not 0 for compatibility.
And it is what I am doing.

for i := 1 to length(s) do ...

so I am not sure that using s[0] is safe

--
Damien Gerard
milipili at shikami.org

"Intelligence is 10 million rules."
    -- Douglas Lenat








More information about the fpc-pascal mailing list