>Hi!
>
>I have this code in VB...To call GetOldFile.dll
>
>Dim getold As GetOldFile.clsGetOldestFile
>getold.GetOldestFileName PATH, *.*, RETURNFILENAME, RETURNDATE
>
>How can I call this code in VFP?
GetOld = createobject("GetOldFile.clsGetOldestFile")
lcoldestfile = space(1)
ldoldestdate = {}
GetOld.GetOldestFileName(PATH, "*.*", @lcoldestfile, @ldoldestdate)
The @ designates that those variables should be passed by reference. When the function populates them within itself, the actual variables will be changed.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao