Re: [fpc-pascal] Empty string

2008-03-03 Thread ik
Doesn't FillChar/Word/Byte works for you ? Ido On Mon, Mar 3, 2008 at 6:16 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > In any programs, a lot of tests on empty strings are made. > The following made the work : > if Length(s) <> 0 then ... > or > if s <> '' then ... > > In a lot of case

[fpc-pascal] Empty string

2008-03-03 Thread Damien Gerard
In any programs, a lot of tests on empty strings are made. The following made the work : if Length(s) <> 0 then ... or if s <> '' then ... In a lot of cases, the real length is no needed, just to know if the string is empty or not. I am mainly using UTF8String so strings with leading zero. Ju

Re: [fpc-pascal] AnsiDequotedStr not return empty for ""

2008-03-03 Thread Joao Morais
zaher dirkey wrote: Who is need to return the same source if it empty quoted string? That force me to implement a new function to use it. Or use AnsiExtractQuotedStr. -- Joao Morais On Sun, Mar 2, 2008 at 2:17 PM, Micha Nelissen <[EMAIL PROTECTED] > wrote: Pe

Re: [fpc-pascal] AnsiDequotedStr not return empty for ""

2008-03-03 Thread zaher dirkey
Who is need to return the same source if it empty quoted string? That force me to implement a new function to use it. On Sun, Mar 2, 2008 at 2:17 PM, Micha Nelissen <[EMAIL PROTECTED]> wrote: > Peter Vreman wrote: > >> In case always check Delphi documentation to see wether the behaviour > >> you

Re: [fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-03-03 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na L ha escrit: Found the problem using my brute force writeln('') skills. It is an issue with freepascal's stack or something to do with buggy threads methinks. As it is when you call lasterror within another procedure with local variables.. they are corrupt