Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different Users, different .dbc - same Computer
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00113800
Message ID:
00113878
Views:
35
>FUNCTION RenDir
>
>LPARAMETERS pcoldname, pcnewname
>
>DECLARE SHORT MoveFile IN Win32API;
> STRING @lpcurrentname, STRING @lpnewname
>LOCAL lcoldname, lcnewname, llresult
>lcoldname = pcoldname
>lcnewname = pcnewname
>llresult = (MoveFile(@lcoldname, @lcnewname) # 0)
>RETURN llresult
>
>The thing I would caution you about is to make sure that the directory is named back when the program terminates. You might also want to include a check for this directory before you try to rename. Its presence may be indicative a a previous instance abnormally terminating. This would require that the directory's real be restored. Of course, changing the name back and forth can be accomplished through use of this function.
>
>hth,


George,

Once again - thanks, it works.
By the way, where can I find info on writing API calls. Focus.??? I know there are alot of calls in that code. I am just hesitant to use it due to my inexperience in this area. Is there a reference manual I should purchase or available thats not too difficult to decipher?

Robert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform