Re: Predefined queries in a PERFORM screen?
Posted in 1994
Dave Clough (clough@hyster.rain.com) wrote: : Is there a way to send a string of characters to a PERFORM screen that : cause it to query up a record (or add, remove, whatever)? I've tried : redirecting the standard input from a string i.e., : isql <database> -fr <perform_screen> << ! : q12<ESC> : ! : -OR- : sperform <perform_screen> << ! : q12<ESC> : ! : In both cases, this is meant to query a field with value 12 in the first : field. The <ESC> is actually the escape key, not the string "<ESC>". : Both behave identically (read that 'don't work'). They open the : screen, query the record then go into an infinite loop of tabbing : through the fields on the form. If I hit the interrupt key, it : stops tabbing through the fields and skips through the menu choices : in RAPID succession. I have to kill the process to get it to stop. : This will work OK if i put an "e" at the end of the string: : sperform <perform_screen> << ! : q12<ESC>e : ! : This queries the record 12 and exits with no errors or complications, : but is less than useful. : Any ideas?? : Dave Clough : Portland, OR If you're expecting it to stop and return control to a user while still in perform, I think you're out of luck. You could use 4gl and call it with an argument. -- gburnore@garys.arasmith.com ------------------------------------------------------------------------------- How you look depends on where you go. ------------------------------------------------------------------------------- | '۳''''''۳''''''''''''' Gary L. Burnore | '۳''''''۳''''''''''''' Director, Programming & Development | '۳''''''۳''''''''''''' Myers Information Systems, Inc. | '۳''''''۳''''''''''''' | Official Proof of Purchase ===============================================================================