I have a routine where user selects a file using GetDir() function. I would like to store the drive+directory before calling GetDir() and then restore it back to that directory
I tried the following:
cCurrDir = sys(5) + sys(2003)
GetDir()
CHDIR cCurrDir
But I get error "Invalid path or file name" on the CHDIR line.
My questions are:
1. What is wrong with my syntax of CHDIR?
2. Would I be better off using SET DEFAULT TO (cCurrDir) instead of CHDIR?
Thank you in advance for any suggestions
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham