Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Simple User Interactions

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Simple User Interactions
#13421
Posted by: PeterJ 2010-11-13 15:59:55 Last edited by: PeterJ 2010-11-13 16:01:32 (Total edited 1 time)
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
/* ......... And Call it ............................................. */ 
IF askuser("2 questions")=0 THEN DO  ; CALL dll WITH a windows title
/* ......... Display entered input.................................... */ 
   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
askUser 13.11.zip
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-4-19  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0