|
Post by msteffes on Feb 20, 2011 0:29:09 GMT -5
if you execute this code the resulting print values are correct. save as TestRUN cls input "Enter value: ";value$ print "Value = ";value$ line input item$ print item$ wait
if you execute the file(TestRUN) holding the above code by using RUN, see below code. run "c:\rbfree\projects\testRUN_project\TestRUN.bas" ,#subProg render #subProg
The INPUT loads nothing in the variable value$ and the LINE INPUT fails with following error: Runtime Error in program 'TestRUN': item$Message not understood: #nextLine Is this a bug or am I missing something in how RUN should work?
|
|
|
Post by StefanPendl on Feb 20, 2011 5:17:03 GMT -5
This seems to be a bug.
BTW, you do not need to include the complete path, if you run a project.
run "TestRUN" ,#subProg
The above will do the same.
|
|
|
Post by jlbachiochi on Sept 5, 2012 9:19:16 GMT -5
I'm seeing this. I run a menu program that allows visitors to choose to run various demos. I'm using the input statement in a demo and the variable is cleared when the input statement is executed (only when run from the menu, not when run standalone.) I've even tried using a string instead of a number and converting back and forth using val().
|
|