|
Post by mikeukmid on Mar 27, 2009 6:15:26 GMT -5
The input statement works ok in a single project, but when used in a program executed with 'run', it returns an empty string.
'save this as "inputTest" input "Continue (Y/N) ";n$ if n$="" then print "Empty string!" else print "You entered ";n$ end if end
'Then run inputTest run "inputTest", #i render #i end
No matter what is entered, always an empty string is returned.
|
|
|
Post by davos1 on Mar 27, 2009 11:56:16 GMT -5
also, using the same code, if one replaces input by line input
(line input "Continue (Y/N) ";n$ ) -to allow any text with commas-
an error happens when running with it via the run command:
Runtime Error in program 'inputtest': "Continue (Y/N) ";n$ Message not understood: #nextLine
|
|