loosib is correct in that GRIP does not support this.
However an out of the box approach
![[evil] [evil] [evil]](/data/assets/smilies/evil.gif)
would be to XSPAWN (See UG GRIP Docs)
an external program and have that program write the information to a temp file that GRIP could read.
This can be done in tcl/tk, VB, etc.
I have used it with tcl/tk before I started using Ufunc w/Styler.
Please also note that you can pass ENV variable to your spawned program. This is one way only!!
I use this to pass the file name I want to create to the spawned program.
This is useful because GRIP can wait for the file to be created before continuing. (if you use CONCUR)
To retrieve any information you will have to write it to a file and read it with GRIP.
The following is a GRIP program that will execute a tcl program using ugwish.
GRIPSW/DECLRV
STRING/$
program(132) ,$ UGWISH
execute(132) ,$ program to execute
basedir(132) ,$ ENV Variable UGII_BASE_DIR
z_end $$
$$#######################################################################
basedir = ENVVAR/'UGII_BASE_DIR',ASK
program = basedir + '\MACH\AUXILIARY\ugwish.exe'
execute = 'U:\DV_System\sample.tcl'
XSPAWN/PROG,program,execute
$$#######################################################################
HALT
hope it helps.....