On 06 Mar 2010, at 21:13, lyh1 wrote: > My question is we should always assign null string to variable before use or > this a bug if I get garbage in unused string?
If you want Delphi-compatible behaviour, you must add {$mode delphi} at the top of your program. In the default mode, "string" is an alias for shortstring instead of ansistring ({$h-} mode). Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal