Proc Reference > PQN Proc Commands > SYSTEM Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

SYSTEM Function (Proc) (m618403+system.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

SYSTEM Function

Provides access to the current states of various system parameters.

Syntax

@SYS{TEM}(element)

Syntax Elements

element A number (or a direct or indirect buffer reference that evaluates to a number) that specifies a particular system parameter. The parameters available are the same as for the DataBasic SYSTEM function (in Reality mode).

Operation

The SYSTEM function can be used with the following Proc commands:

MV (destination cannot be a select register)

T

IH (if not a valid function, element is treated as a string)

IBH (if not a valid function, element is treated as a string)

H (if not a valid function, element is treated as a string)

IF (used as a conditional test)

A few functions (such as 15 and 22) return multiple fields separated by attribute marks. Use the MV command to access these functions.

MV reports a format error if the argument supplied to the function is non-numeric.

Examples

The following command places the alphabetic option in %2, the first numeric option in %3, and the second numeric option in %4:

MV %2 @SYSTEM(15),*2

The following example returns the system name:

MV %3 "52"
T "DATABASE NAME: ",@SYSTEM(%3)

The following example returns 'PORT*portnumber':

MV %2 "PORT*"*@SYSTEM(18)

RealityV15.1 (MoTW) Revision 7Comment on this topic