if you need simple user interactions to request one or more items the following solution might be useful. It does not have the flexibility of Jeff's GUI defintions and will not compete with it. But in situation where you request, let's say Name and Address you can use it within minutes. I use it to get rid of the PULL statements in my batch scripts
Example:
_ask.text.1="What's your name?" ; now we request 2 input fields
_ask.text.2="... and your telephone number?"
_ask.0=2 ; therefore _ask.0 becomes 2
IF askuser("2 questions")=0 THEN DO ; CALL dll WITH a windows title
SAY "Hello "_ask.result.1 ; we requested 2 input fields
SAY "Phone number is "_ask.result.2 ; - THEN we get 2 result fields!
END
We define the input box titles, call the dll. The input window is opened containing the appropriate input fields. The results are pushed back into the result stem variables
Just check out ASKME.rex and run it.
If someone is interested I may prepare a brief documentation.
Peter |