input not working after RUN

new BookmarkLockedFalling
msteffes
New Member
*

msteffes Avatar

Posts: 1

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?
StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
jlbachiochi
New Member
*

jlbachiochi Avatar

Posts: 8Male

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().