[fpc-pascal] String comparison

Damien Gerard milipili at shikami.org
Fri Dec 21 16:03:18 CET 2007


On Dec 21, 2007, at 2:47 PM, Daniƫl Mantione wrote:

>
>
> Op Fri, 21 Dec 2007, schreef Damien Gerard:
>
>>
>> Just another question :)
>> What is the most efficient way to check if a string is empty or not ?
>>
>> if s = '' then ...
>> of this one
>> if Length(s) <> 0 then ...
>
> Both generate the same code.

Thanks !

--
Damien Gerard
milipili at shikami.org

People who used magic without knowing what they were doing usually  
came to a sticky end. All over the entire room, sometimes.
     -- (Terry Pratchett, Moving Pictures)






More information about the fpc-pascal mailing list