Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: Latest File...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 769 of 861
Post > Topic >>

Re: Latest File Modification Date

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
 




 5 Posts in Topic:
Latest File Modification Date
Gene Wirchenko <genew@  2007-05-17 13:21:06 
Re: Latest File Modification Date
Gene Wirchenko <genew@  2007-05-17 17:48:15 
Re: Latest File Modification Date
Man-wai Chang <toylet.  2007-05-18 10:09:20 
Re: Latest File Modification Date
"Stefan Wuebbe"  2007-05-18 08:41:55 
Re: Latest File Modification Date
Bernhard Sander <fuchs  2007-05-18 11:23:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:54:32 CST 2008.