Information générale
Titre:
PUTFILE():VFP 5.0 on Windows 2000
I have the following piece of code in on form class
lcFileName = ALLTRIM(PUTFILE('Delimited file:', ' ', 'CSV'))
and this one in another extremely similar form class
lcFileName = ALLTRIM(PUTFILE('Delimited file:', lcNewDir, 'CSV'))
where lcNewDir = SUBSTR(FULLPATH(CURDIR()),1, AT("\", FULLPATH(CURDIR())))
The same lcNewDir variable and code deriving it is in the first method also but is handled differently, CD &lcNewDir before the lcNewFile line (this is a program I inherited). I get an "invalid path or filename" error on the first one whe I click on the Save button of the Save As dialog screen but the second one works fine. Does the third argument of the PUTFILE() have to be something other than a blank? As far as I know, both work on systems running NT and Win95.
Regards...
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