input from CIW

G

Greg

Guest
how do you let the user enter a string from the CIW when your running
a skill script from a file.

right now I have a source file with a program in it, and I'm loading
it with load("MySourceFile.il")

in the source file i have the line gets(x piport)

rather than stalling the program until the user inputs a line to be
stored in x as a string (which is what i want to happen), it just
reads the next line in my source file and puts that in x.
 
Greg wrote, on 06/29/09 21:25:
how do you let the user enter a string from the CIW when your running
a skill script from a file.

right now I have a source file with a program in it, and I'm loading
it with load("MySourceFile.il")

in the source file i have the line gets(x piport)

rather than stalling the program until the user inputs a line to be
stored in x as a string (which is what i want to happen), it just
reads the next line in my source file and puts that in x.
piport is set to the file being read it (actually this is rather useful, because
it means you can detect the filename of the file currently being read using
get_filename(piport)).

Anyway, I would really recommend against using gets(x piport) as a means of
interacting with the user - I've only ever seen trouble when people try to do
this. Better to use a form, or dialog box, or even an "encapsulation window"
(hiEncap()).

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top