[fpc-pascal] how to initialize a SearchRec var?
waldo kitty
wkitty42 at windstream.net
Mon Jan 6 00:37:54 CET 2014
On 1/5/2014 6:26 PM, Sven Barth wrote:
> On 05.01.2014 19:24, waldo kitty wrote:
>> following up on this... this is what i came up with... is it right/proper?
>>
>> {$IF (FPC_FULLVERSION >= 20701)}
>> {$INFO initializing dirinfo with Default(SearchRec)}
>> dirinfo := default(searchrec);
>> {$ELSE}
>> {$PUSH}
>> {$HINTS OFF}
>> {$INFO initializing dirinfo with fillchar(dirinfo,sizeof(dirinfo),$00)}
>> fillchar(dirinfo,sizeof(dirinfo),$00);
>> {$POP}
>> {$ENDIF}
>>
>>
>>
>
> Should be correct.
thanks! it seems to work on the few systems where i tested it... we have to
ensure that we get it placed into our existing code base ;)
--
NOTE: No off-list assistance is given without prior approval.
Please keep mailing list traffic on the list unless
private contact is specifically requested and granted.
More information about the fpc-pascal
mailing list