Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table reference
Message
From
27/05/2008 02:46:34
 
 
To
27/05/2008 02:31:31
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01319601
Message ID:
01319602
Views:
13
Hi Ransome,

if your DBC is not to be found within your current directory, then SET DEFAULT TO won't help at all. In such a case you will have to use SET PATH TO ... ADDITIVE.

As you already use CURDIR(), you could do it like this:
LOCAL lcMyPath
lcMyPath = FULLPATH(CURDIR()) + [;] + FULLPATH(CURDIR()) + [myDBCSubDir]
SET PATH TO (lcMyPath)
RELEASE lcMyPath
>Dear all,
>
>When I click on the excecutive file of a project. It ask for the location of the dbc while I move the application for distribution in which the location of the dbc file is changed. I can only access the table at the position I develop the project.
>
>In the older version the location of the databases are relative but I file to do so in VFP9.0.
>
>What is the wrong I have been done ??
>
>In the main.prg which for compiling I have the statement SET DEFAULT TO CURDIR()
>
>
>
>Thank for your kind attention.
>
>
>Regards,
>
>Ransome
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform