Hi,
I have a form that calls a method depending on the type of outpout the user wants (i.e. Print the report, preview the report or save the report to a text file).
The method is shown below. When I specify a file name with no spaces (i.e. textfile1), it works fine; however, when I type in a file name with spaces (i.e. text file1), I get ERROR 36 - 'Command contains unrecognized phrase, keyword'.
What should I change to allow the user to key in a text file name that can have spaces?
************************************
*
* method output3 - export the report to a text file
*
************************************
local lcExportfile, lcExportname
_ASCIICOLS = 132
lcExportname = "os_items"
lcExportFile = PUTFILE('Text file:', lcExportname, 'TXT')
IF EMPTY(lcExportname) && Esc pressed
CANCEL
ELSE
REPORT FORM os_items TO FILE &lcExportFile ASCII
use in os1
lcoutputm = "The report has been save to text file: " + lcExportFile
=messagebox(lcoutputm,0,oCUWS.appname)
ENDIF
*** end of method
Al Williams
Anola MB, CANADA