Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET PATH in VFP 5.0 doesn't work ??
Message
De
26/12/1996 11:06:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00015976
Message ID:
00015996
Vues:
29
>>I issue the following commands in my main program
>>
>>lcDefault = SYS(5) + SYS(2003)
>>SET DEFAULT TO (lcDefault)
>>CD (lcDefault)
>>lcPath = lcDefault + '\data'
>>SET PATH TO (lcPath)
>>
>>When I run the program under the VFP IDE, everything works as it should.
>>However, when I make an EXE, move the EXE to a new directory, place a copy
>>of the \DATA inside the new directory, and run the EXE, the EXE works with
>>the original \DATA directory - not the \DATA subdirectory that is located
>>within the same directory as the EXE.
>>
>>What am I doing wrong?
>>
>>Thanx in advance.
>
>
>If you are using DataEnvironment and free tables, your CursorSource contains the full path to your initially selected .DBF. So at the runtime it will still look for that .DBF.
>Similar thing happens with DataEnvironment.Cursor.Database property when using database container.

Not quite accurate....the DBC stores the relative path, not the full path.

Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform