Hi
Old Delphi hack, newbie to Free Pascal
I have a procedure copied/ pasted from Delphi:
procedure TfrmMain.FileSearch(const dirName: string;const fromdate : TDate = 0 )
I call the function with
adate := Date() - 7;
FileSearch(DirName, adate);
The procedure receives the DirName correctly, but the fromdate is always the first system date, i.e.
30 Dec 1999. I've changed things around numerous ways but no matter what, I don't seem to be able to pass an adjusted date value to the procedure.
Is this by design, is it me, am I missing something, or are the Pascal gods simply testing me?
Thanks for your patience....