[fpc-pascal] how to initialize a SearchRec var?

Florian Klämpfl florian at freepascal.org
Thu Jan 2 20:50:52 CET 2014


Am 02.01.2014 20:21, schrieb waldo kitty:
> 
> 
> understanding that SearchRec has different formats for different OS
> targets, we've tried to use fillchar to initialize it to an empty
> record... unfortunately that does not remove the hint... instead the
> hint points to the fillchar line...
> 
> we do not want to turn off hints so how can we initialize dirinfo and
> make fpc happy?

With 2.7+ you can use Default (in objfpc mode):

  dirinfo:=Default(SearchRec);





More information about the fpc-pascal mailing list