Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behaviour of CHDIR
Message
 
 
À
06/01/2013 14:06:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01561555
Message ID:
01561558
Vues:
58
Why are you so obsessed with macro substitutions? Learn to use Name Expression
lcCurDir = FULLPATH("")

CD (sDirectory)
CreateDirectory('Backup',0)
...

CD (lcCurDir)
>I am using the following code in Click property of Combo Box
>
>lcCurDrive = ALLTRIM(Justdrive(Fullpath(Curdir())))
>lcCurDir = ALLTRIM(Curdir())
>
>SET DEFAULT TO (sDirectory)
>CreateDirectory('Backup',0)
>Targetpath='&sDirectory'+'Backup\'
>Thisform.unlockallfiles()
>Thisform.Fileselect()
>Thisform.Unitbackup()
>Thisform.circlebackup()
>Thisform.Closemonth()
>Thisform.lockallfiles()
>CHDIR ('lcCurDrive&lcCurDir')
>
>The program Was Running fine, and I was able to come Back to my parent Directory using CHDIR ('lcCurDrive&lcCurDir').
>But Suddenly My Program Started throwing error as "Invalid Path" for CHDIR ('lcCurDrive&lcCurDir').
>
>Whats the problem. Kinldy Guide.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform