I am oversimplifying this in interest of keeping this short, but
I seem to recall a method of imputting wihtout prompts, at
least in QB.
If I had separate programs to add two numbers, multiply two
number, subtract, two numbers, and divide two numbers, and a
"Controller" program, can I make use of SHELL without displaying
the prompt and still see the answer?
I.e., for example
' Routine to ADD two numbers
:'Get, Read, or input 2 numbers, called No1, and No2
X = No1 + No2
print "The result is "; X
print "Press any key."
End
:'Control program
Print "Give me a number: ";:input A
Print "Give me another number: ";:input B
Print "What do you want to do? Your choices are:"
print "1> Add 2> Subtract 3> Multiply, 4> Divide"
Input Optn
select case Optn
Case 1
Filename$ = "C:\Math\Add.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case 2
Filename$ = "C:\Math\Subtract.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case 3
Filename$ = "C:\Math\Multiply.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case 4
Filename$ = "C:\Math\Divide.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case else
Print "Hmmm, something wrong happened."
Print "Ask your teacher. I am patient,"
Print "I will wait for you!!"
End select
Again, I oversimplified this, but that is ok. My inquiry is
how do I pass that value to a SHELL command so the shelled
program will accept it?
Thank you.
Robert
------------------
I seem to recall a method of imputting wihtout prompts, at
least in QB.
If I had separate programs to add two numbers, multiply two
number, subtract, two numbers, and divide two numbers, and a
"Controller" program, can I make use of SHELL without displaying
the prompt and still see the answer?
I.e., for example
' Routine to ADD two numbers
:'Get, Read, or input 2 numbers, called No1, and No2
X = No1 + No2
print "The result is "; X
print "Press any key."
End
:'Control program
Print "Give me a number: ";:input A
Print "Give me another number: ";:input B
Print "What do you want to do? Your choices are:"
print "1> Add 2> Subtract 3> Multiply, 4> Divide"
Input Optn
select case Optn
Case 1
Filename$ = "C:\Math\Add.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case 2
Filename$ = "C:\Math\Subtract.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case 3
Filename$ = "C:\Math\Multiply.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case 4
Filename$ = "C:\Math\Divide.exe"
DoThis$ = Filename$+" "+A+" "+B
Shell Dothis$
Case else
Print "Hmmm, something wrong happened."
Print "Ask your teacher. I am patient,"
Print "I will wait for you!!"
End select
Again, I oversimplified this, but that is ok. My inquiry is
how do I pass that value to a SHELL command so the shelled
program will accept it?
Thank you.
Robert
------------------
Comment