[fpc-pascal] Wince+DebugLn

2008-03-02 Thread Denis Golovan
Hi, all! When trying to debug LCL DebugLn is rather useful. AFAIU, decision about logging is carried out on initialization of LCLProc unit. Debugging ordinary progs is quite comfortable :). Wince progs is the other story. As we don't have console on Wince (I mean standart M$-made consol

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

2008-03-02 Thread Micha Nelissen
Peter Vreman wrote: >> In case always check Delphi documentation to see wether the behaviour >> you see is intentional. > > In case of "" it is also ambigious what you want. Because "" in the > middle of the string is translated to a single ". So you might also > expect that it returns a single "

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

2008-03-02 Thread Peter Vreman
That also in Delphi, but it is for me wrong. In fact that make my program working wrong when send UserName="Admin" and Password="", it check password as '""' not empty. The behaviour is compatible with Delphi and will not be changed. Might as well remove it then, as it seems to me it's pretty

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

2008-03-02 Thread Daniƫl Mantione
Op Sun, 2 Mar 2008, schreef Micha Nelissen: Peter Vreman wrote: That also in Delphi, but it is for me wrong. In fact that make my program working wrong when send UserName="Admin" and Password="", it check password as '""' not empty. The behaviour is compatible with Delphi and will not be ch

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

2008-03-02 Thread Micha Nelissen
Peter Vreman wrote: >> That also in Delphi, but it is for me wrong. >> In fact that make my program working wrong when send UserName="Admin" >> and Password="", it check password as '""' not empty. > > The behaviour is compatible with Delphi and will not be changed. Might as well remove it then,

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

2008-03-02 Thread Peter Vreman
zaher dirkey wrote: S := AnsiDequotedStr('""', '"'); Return in S the same source string for empty quoted. That also in Delphi, but it is for me wrong. In fact that make my program working wrong when send UserName="Admin" and Password="", it check password as '""' not empty. The behaviour is

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

2008-03-02 Thread zaher dirkey
S := AnsiDequotedStr('""', '"'); Return in S the same source string for empty quoted. That also in Delphi, but it is for me wrong. In fact that make my program working wrong when send UserName="Admin" and Password="", it check password as '""' not empty. -- Zaher Dirkey