Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make the form stop hard coding table path
Message
From
10/05/2002 04:12:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/05/2002 14:22:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00645079
Message ID:
00654916
Views:
15
>>>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?

Possibly it'd matter a few milliseconds.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform