Page 1 of 1

Interactive programs

Posted: Thu Oct 20, 2016 8:36 am
by steved
I would like to see Rel have the ability to programmatically engage a user.
Something similar to "prompt_Text_line" illustrated at:
http://muldis.com/Muldis_D.html#hello
and
"io.get_line(s)" at:
http://duro.sourceforge.net/docs/durodt/tut.html
(see: Control statements).

Scripts could be written to guide novice users, thru a give and take, to
generate particular queries, types and build up parameters to execute operators.

thanks,
steve

And a big thanks for Rel 3.0!

Re: Interactive programs

Posted: Thu Oct 20, 2016 8:31 pm
by Dave
You're welcome. :D

Whilst interaction is designed to be in the traditional database server idiom -- i.e., queries go in and results come out, with WRITELN/WRITE/OUTPUT really only intended for debugging -- there's no reason not to support console input -- perhaps via READ/READLN -- in the same way that console output is currently supported via WRITELN/WRITE/OUTPUT.

I'll add it to my "to do" list. It might not be directly available via the Rel 3.0 front-end's command-line, but it will be available in the stand-alone Rel interpreter, which is probably how you'd want to use it anyway.