I followed the example in the documentation for Putfile() function, but am getting an error if I add expc1 and expc3. without these it appears to work. Any ideas?
example:
cProgramSaveAs = putfile("Save the program","default.prg","prg")
My code:
copy to putfile("Save file As:","payrollexport.csv","csv") fields id, classify, category, amount, blank1, blank2, blank3 delimited
Helps if I give the error:
**** Lianja error ****
to putfile("Save file As:","payrollexport.csv","csv") fields id, classify, category, amount, blank1, blank2, blank3 delimited
^
Syntax error in command
Called from procedure - pto_menu_export_click at line 108
I have since tried to save the file path to a variable and that that point the dialog box comes up, but still gives the following error:
**** Lianja error ****
to test2 fields id, classify, category, amount, blank1, blank2, blank3 delimited
^
Field variable was expected
Called from procedure - pto_menu_export_click at line 108
If I use putfile() by itself, it works properly.
Bookmarks