Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make the form stop hard coding table path
Message
From
09/05/2002 14:22:27
 
 
To
15/04/2002 13:29:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00645079
Message ID:
00654673
Views:
13
>>I have an app I'm attempting to distribute, but the form is hard coding the table's location (path). The table is not part of a database. Is there a way I can replace the cursorsource in the dataenvironment with justfname(cursorsource) for all tables then run opentables()? I've done this when a file is part of a database by setting the database, but I can't figure out how to do this when the files are not members of a database. Your would think/hope VFP would use relative location unless otherwise specified. Thanks!
>
>Set Database property to '' and CursorSource to fullpath of dbf.
>
>thisform.DE.Closetables
>* Loop and change cursor props
>thisform.DE.Opentables
>
>But if VFP cannot find the tables in hardcoded path it'd use the ones found in path. IOW you don't need to play with code.
>Cetin

Hi Cetin,

I have a similar problem (the hardcoded path was set to my local development drive) but since I have a pathset variable in the MAIN.PRG (CONFIG.FPW), it worked just fine. However, the question remains, does it affect time response/performance?
Thanks!
~d
J
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform