Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FP26 para Windows curdir() function
Message
De
01/12/2003 14:28:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
FP26 para Windows curdir() function
Divers
Thread ID:
00854788
Message ID:
00854788
Vues:
63
I am facing a problem and I need some help. I am using the curdir() to create a file with the same name as the folder i am at the moment i call that function. I am running the application under Windows XP Pro. There are several data folders. For some the curdir() works fine and return the path correctly, but in two cases the function return a blank string. Even though the application is running in the correct folder and finding its DBFs and CDXs. How is it possible? The same application is running for all the folders!
an example:
Let´s say my work folder is C:\MY APP\DATA\COMPANY1\
Through curdir() rat() and substr() I can isolate the folder name COMPANY1 as follows:
SUBSTR(CURDIR(), RAT('\',CURDIR(),2)+1,RAT('\',CURDIR())-RAT('\',CURDIR(),2)-1)
more or less what justpath() does in VF7.
Can anyone tell why curdir() is returning an empty string for 2 folders and working fine for the rest of the folders? Windows XP Pro got something to do with it?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform