by Bernhard Sander <fuchs@[EMAIL PROTECTED]
>
May 18, 2007 at 11:23 AM
Hi Gene
Approach 3:
Loop through the adir array until you find the latest file:
ltLast = {}
lnLast = 0
for i = 1 to adir(laDir ...)
ltThis = CtoT(Dtoc(laDir(i, 3)) + " " + laDir(i, 4))
if ltThis >= ltLast
lnLast = i
ltLast = ltThis
endif
endfor
lcLatestFileName = laDir(lnLast, 1)
Regards
Bernhard Sander