Interactive programs

This forum is for anything about Rel that isn't more appropriate elsewhere.
Post Reply
steved
Posts: 49
Joined: Sun Sep 01, 2013 10:53 pm

Interactive programs

Post by steved » Thu Oct 20, 2016 8:36 am

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!

Dave
Site Admin
Posts: 368
Joined: Sun Nov 27, 2005 7:19 pm

Re: Interactive programs

Post by Dave » Thu Oct 20, 2016 8:31 pm

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.

Post Reply