[fpc-pascal] Re: Initializing Records Automatically
L
L at z505.com
Mon Mar 24 12:53:18 CET 2008
Florian wrote..
> Records and objects containing automated fields are initialized? Or do I
> miss something?
Oh...?
This is something I have never been clear about :-(
So a record with an ansistring and an integer.. for example even local scope..
Will be all zeros?
procedure test;
var somerec: Tsomerec;
begin
// these checks are okay?
if somerec.astring = ''
if somerec.someint = 0
end;
i.e. above is not random data?
The reason I ask is because some times i have had odd buggy behavior when I use local scope records... but when I use a global scope one it is okay..
If this is some bug or screwy code of mine I want to find out and solve this.
More information about the fpc-pascal
mailing list