Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save the value of SET DEFAULT
Message
 
À
25/04/2001 23:36:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00499918
Message ID:
00500475
Vues:
24
CURDIR() only returns the path without the drive. So the say I always do it is

lcDefault = FULLPATH(CURDIR())

This will give the full path. You can save it to a property or whatever you want to save it to and then set back to it with

CD (lcDefault)

Or whatever you saved it to when your done.

>=SET("DEFAULT") only returns the drive, not the full current path, so you need CURDIR() as Phillip pointed out.
>
>>cPath=SET("PATH")
>>cDefault=SET("DEFAULT")
>>CD "D:\New Drive\New Dir"
>>** Blah blah blah
>>SET DEFAULT TO (cDefault)
>>SET PATH TO (cPath)
>>
>>
>>
>>
>>>>I want to change the SET DEFAULT. So first i want to save the value, set it, do something, then change it back. How do I save the value of SET DEFAULT?
>>>>
>>>>Thanks
>>>>
>>>>Brenda
>>>
>>>>>var = SYS(5) + CURDIR()
>>>>>seT DEFAULT TO newdir
>>>>>...
>>>>>
>>>>>SET DEFAULT TO (var)
>>>
>>>how do i save the current PATH?
>>>
>>>Brenda
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform