ProvideX V8.20 > Language Reference > 9. Special Command Tags
797
[WDX] Tag
                 Direct Action to Client Machine
Formats
1. Execute: EXECUTE "[WDX]statement"
2. Invoke:  INVOKE "[WDX]statement"
3. Call Subprogram: CALL "[WDX]subprog",params
4. Open File:  OPEN (chan[,fileopt])"[WDX]filename"
5. Open COM Port: OPEN (chan,OPT=settings$)"[WDX]port_id"
6. Open Tag Process:  OPEN (chan[,fileopt])"[WDX][tag]prog;[params]"
7. OPEN Print Devices: OPEN [INPUT] (chan[,fileopt])"[WDX]*device*[;Q_name[;Q_options]]"
8. Create Object: NEW("[WDX]ClassName")
9. Define Windows Object:  DEF OBJECT com_id,"[WDX]objname"
10.Call *WindX.utl: CALL "[WDX]*WindX.utl;function",params
Where:
[WDX]
File tag notifies ProvideX that you are directing the action to the
WindX client machine instead of the server.
chan
Channel or logical file number to open.
class$
Name of class for creating new object. String expression.
com_id
Numeric variable to receive a handle (memory pointer to object).
Identifier and parameters for either of the two [WDX]-supported
*device*
special device files (*WINDEV* or *WINPRT*). See *WINDEV* Raw
Q_name
Print Mode, p.752, and *WINPRT* Windows Printing, p.756
Q_options
filename
Name of the file to open (file must exist on the client PC); e.g.,
or
OPEN (14)"[WDX]"+TMP$
OPEN (14)"[WDX]temp_file"
Function
A ProvideX utility/function, part of the *WindX.utl utility
program. For instance, the *WindX.utl;Spawn function initiates
tasks on the server and/or client.
fileopt
File options. Supported options include:
BSZ=num Buffer size (in bytes)
ERR=stmtref Error transfer
IOL=iolref Default IOList
ISZ=num Open file in binary mode
NBF=num Dedicated number of buffers
OPT=char$ File open options
REC=string$ Record prefix (REC=VIS(string$) can also be used).
objname$
Name by which the COM object is registered in the Windows
system registry subkey HKEY_CLASSES_ROOT.
params
Arguments and variables you pass to the subprogram or function.
If you include a list, it's comma-separated.
port_id
System identifier for the port; e.g., COM1.