Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database Paths in Foxpro 5.0
Message
From
25/08/1997 11:14:16
 
 
To
25/08/1997 10:58:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00046682
Message ID:
00046696
Views:
28
>>Does anyone have any comments about rules for using database tables from
>>different directories? In this application a directory may reside on the
>>local PC, but the data path may be on a server, either one might have a
>>directory designation determined by the user.
>
>Form.DataEnvironment.BeforeOpenTable events should call app method resetting DataEnvironment.CursorX.Database properties.

Hi Jeff:
In one of my vfp applications, I have a menu option that says..
SET DATA PATH...If you click on this option, a FORM (Called GET_DATA)
opens and you can set a valid data path by filling out a text field.
The code I use for this is in the click event of the OK button on GET_DATA.
HTH...thanks ...rob :)
if !empty(thisform.text1.value)
store alltrim(thisform.text1.value) to mypath
newpath = mypath+"\my_database_name"
if file(newpath+".dbc")
set path to &mypath
else
messagebox('Can not find Data Files from - '+mypath,'Problem')
thisform.text1.setfocus
return
endif
endif
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform