WindX & Javx
Windx.utl - Utility program  
   
Overview The WindX utility program *windx.utl provides a variety of functions that simplify the development of applications that make use of WindX.
   
  Format of the CALL:

CALL "[WDX]*WindX.utl;function",params

Use the following formats to call the utilities/functions in the WindX.utl utility program;,

call "[wdx]*windx.utl;Get_LWD",Station_dir$
call "*windx.utl;spawn",cmdline$,inifile$,appfid$

The following functions are built into WindX to simplify development tasks:

CALL"[WDX]*WindX.utl;Get_Addr",X$ Returns the command line argument number specified by X in X$.
CALL"[WDX]*WindX.utl;Get_LPG",X$ Returns the LPG (Lead Program Name) system value for the WindX session.
CALL"[WDX]*WindX.utl;Get_LWD",X$ Returns the local current disk directory (Last Working Directory) for WindX session.
CALL"*WindX.utl;Spawn",X$,I$,F$
(see note below)
Spawns a new session of ProvideX on the host and an associated WindX session on the client PC. By default, if the main session terminates, then the spawned session terminates. The parameters are:
X$ command line parameters to be used on the host.
I$ pathname of INI file to be used on the client PC.
F$ value of FID(0)for the session.
CALL"*WindX.utl;Spawn_Nohup",X$,I$,F$
(see note below)
Same as Spawn but detaches the session from the main user task. If the main task terminates, then the spawned task continues executing.
CALL"[WDX]*WindX.utl;Get_WindX",X$ Returns the absolute pathname of the WindX program.
CALL"[WDX]*WindX.utl;Get_NewPort",X Returns the port number of an unused TCP/IP port on the WindX station.
CALL"[WDX]*WindX.utl;Get_TCB",X Returns the value of the TCB function task specified by X in X; i.e., X=TCB(X).
CALL"[WDX]*WindX.utl;Get_Val",X$,Y$ Evaluates/returns value of string expression X$ in Y$; i.e., Y$=EVS(X$).
CALL"[WDX]*WindX.utl;Get_Num",X$,Y Evaluates/returns value of numeric expression X$ in Y (i.e., Y=EVN(X$).


*Note* Call to *Windx.utl;spawn and *Windx.utl;Spawn_Nohup should not have the [WDX] prefix in front as they are performed locally.