Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system commands in graphical window

Status
Not open for further replies.

pgh001

Technical User
Apr 15, 2003
1
NL
Hi,

Is it possible to show output from any system command in a graphical window ?

And is it also possible to receive user input in this window ?



 
There may be a C routine that can be compiled into the 4gl code that can do this, but by default the only thing returned to the 4gl program from a system call is the exit status. What I have done in the past, for instance to return the PID of a processes started, such as another 4gl program, is have the system call store the pid ($!) in a file and load that into a temp table which can be selected from and displayed in the window. Right below the DISPLAY statement you can have a PROMPT statement to accept user input or open a form in the window with a FOR INPUT clause. If you don't already have Kathy Kipp's book, INFORMIX 4GL, you might see about getting it, she covers a lot of ground.

Hope this helps.

Justin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top