Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a program with a dbf file.
Message
From
12/01/1998 12:56:52
 
 
To
12/01/1998 12:52:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00070780
Message ID:
00070820
Views:
52
>>>I wrote vfp50 program for my users.
>>>One of the dbfs I am using is called rate.dbf.
>>>Every year, a new rate.dbf comes out. I need
>>>to let the users update the rate.dbf file in the program.
>>>any ideas?
>>
>>Are you saying that you include the .dbf in the .exe? If so (not that I think that this is a good idea), you need to recompile and give them the new executable. If the users have a copy of the table, just have them copy the new table over the old one.
>>Or are you trying to further automate the process? If so, please specify how automated you want it to be.
>Hi Erik
>Yes, I want to further automate the process. I want the users to put
>in the disk with the new rate.dbf on it and then pick an option
>off the menu like UPDATE RATE TABLE. Then, the new file is copied over
>the old one.

Just add a new menu item that runs a procedure. Use the COPY FILE command:

oldsafe = set('safety')
copy file 'a:\newtable.dbf' to 'c:\mypath\oldfile.dbf'
set safety &oldsafe

If the location on the drive is not always the same, use the putfile() dialog and use the location returned by this function.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform