Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing last modified dates/times of two files
Message
 
To
17/02/2005 14:27:28
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00988050
Message ID:
00988054
Views:
46
This message has been marked as the solution to the initial question of the thread.
>Hello,
>I am having a heck of a time here. I have two files in which I want to compare the dates/times last modified. I am using ADIR() and extracting both the dates and the times, but I am having problems getting them together in a DATETIME format. Can anybody help me out? Thanks!
>
>MAC

Assuming that indexes of the array are 1 for one file and 2 for the other and the array is called laDir
? Ctot(dtoc(laDir[1, 3]) + ' ' + laDir[1, 4]) > Ctot(dtoc(laDir[2, 3]) + ' ' + laDir[2, 4])
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform