Hi,
You got it all correct already. But say, if you want a response from the user, you have to use "Input" rather than "Print".
- The "Print" command just puts your text up on the screen.
- Whereas the "Input" command, requires the end-user to respond before it can proceed to the code. Notice you had to put a "String-Variable" after the input command?
Quote: "Input "Enter Your Name>" ; name$"
Like in your code above. You need to key in something first, before it can proceed to the:
Quote: "Print "Hello " ; name$"
Got it?
So, if you want to know the user's response, then you can use the "Input" command and use the "If-Then" commands to respond back to the user's choice. Like as follows:
Hide Mouse
Input "Enter Your Name>" ; name$
Print "Hello " ; name$
Print "How are you today?"
rem Following "---" are line breakers.
print " A: Good "
print "---"
print " B: Fine "
print "---"
print " C: Bad "
print "---"
Print " Please select a choice... (eg: type 'A' for good)"
Rem Print some blank lines
Print " "
Print " "
Input "You choice is: ", Choice$
If Choice$ = "A" Then Print "You selected A!"
If Choice$ = "B" Then Print "You selected B!"
If Choice$ = "C" Then Print "You selected C!"
But bear in mind that strings are case sensitive. Hope that helps.
AsriCE Crew,
- Adi
There's only one hope.