Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADir function
Message
 
 
To
28/01/1999 08:23:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00181248
Message ID:
00181259
Views:
11
>Hello:
>
>I have a program written that uses the adir function to display
>all directory information into a form when the user clicks a button.
>
>If a user makes a change to a file and then displays the file details
>in this form it gives that date and time before the change. If they go into explorer and refresh and then use the program it gives the correct information. How can I incorporate a refresh in my program
>so that any changes to files in the directories which I am displaying
>will be immediately displayed in my form?
>
>Any input would be greatly appreciated. Thank you.

You would either have to reissue your ADIR() command to get the current information, or trap the filename the user picked for editing, then do an ADIR() on that filename sending that info to a different array name. Use info from the second array to update the second array. I think the first way is easier. You could incorporate a similar way of refreshing by having the user decide when to refresh the info -- use a command button with a REFRESH caption.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform