Information générale
Titre:
FP26 para Windows curdir() function
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement