U2_EXECPROC Function

Executes U2 functions on the U2 back end. This function returns Intercall status codes and sets @FILE.ERROR with error details.

result = U2_ExecProc(VolumeID, Command, Buffer, Reply, Interactive)

The function has the following parameters:

ParameterDescription
VolumeIDVolume pointer name to base the virtual session on.
CommandThe server command line to execute.
BufferThe buffer contains the return data resulting from the command.

Status Codes

CodeDescription
-1Invalid arguments.
0Execution complete. This does not necessarily mean that the procedure was successful.
1General failure. @FILE.ERROR will contain detailed information.
nOther. See Intercall Documentation.

The buffer can handle lengths up to 2048 characters.

declare function u2_execproc

VolumeID = 'mylaptop6100b:UV'

Command = 'RUN BP LIST.INDEX'

buffer = ''

result =  u2_execProc(VolumeID, Command, Buffer)

* get rid of extra spaces

buffer = trim(buffer)

x = msg(@window, trim(Buffer) )
  • guides/programming/programmers_reference_manual/u2_execproc.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1