System-dialog Get-file Save As

DSeichter

New Member
Hello,

how I have to write my code to do be able to save an output to a new file with seleted path.
At the moment my code is:
SYSTEM-DIALOG GET-FILE procname SAVE-AS
TITLE "Choose file ..."
MUST-EXIST
USE-FILENAME
UPDATE OKpressed.

IF OKpressed = TRUE THEN DO:
OUTPUT TO procname.

....

What I have to change, because OUTPUT TO does not really work.
Using 9.1.D06

Thanks a lot

Daniel Seichter
 
If memory serves me well I think you should remove the MUST-EXIST option from your code. MUST-EXIST indicates that the file has to exist when you click OK, which means you would not be able to output to a new file as you said you wanted to do. And, you may want to change your OUTPUT TO statement into OUTPUT TO VALUE(procname).
 
Hello,

thank you for your answer. Now it works! I didn't know the value(procname), so I everytime got the error of "can't find filename"

Wish you a nice day
 
Back
Top