Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 14th Jul 2003 02:57
"INPUT Print Statements, Input Variable"


Input Command does not display propmpt or "Print Statements" on screen, only Input Variable. In fact it wipes out all text on screen that was printed

Am I doing something wrong or will I need to create a seperate routine to display prompts?

Thanks in advance as always
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th Jul 2003 03:19
input "Test: ",10," 2 ",x$

This works OK on my PC.

Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 14th Jul 2003 04:22
It works fine for me too,until I enter a graphics enviroment then the input command clears all "non objects" such as paste and text.

Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th Jul 2003 05:06
This is unavoidable I'm afraid as using INPUT seems to enter a modal loop where only the 3D objects + the input are drawn.

Normally this is what happens in pseudo code:

function Sync()
Render3DStuff()
Draw2DStuff()
FlipToScreen()
endfunction

Input goes to a function doing this which runs until enter is pressed

function Input()
Render3DStuff()
DrawInputPrompt() <== Other 2D ignored
FlipToScreen()
endfunction

The only way to recitfy this is to write your own routine.

What you could do is to put all of the 2D drawing in one function, then you can call that from your custom Input routine.

Re print statements, this is obviously a bug, as Lee didn't test it properly.

Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 14th Jul 2003 05:12
Thanks Rob K. Now that I know its not just some simple mistake I am making it should be fairly easy to create a routine that can replace input

Login to post a reply

Server time is: 2026-07-21 12:50:17
Your offset time is: 2026-07-21 12:50:17