[fpc-pascal] String comparison

Daniël Mantione daniel.mantione at freepascal.org
Fri Dec 21 14:47:15 CET 2007



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.

Daniël


More information about the fpc-pascal mailing list