General information
Title:
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only