Overview | Statement List | Example


用户函数参数

Synopsis

UFARGS/parameter list,[,IFERR,label:]

Description

User Function has the capability to call a GRIP program via the User Function routine UF_call_grip. The UFARGS statement allows User Function and GRIP to pass arguments and results between the two languages. The first call to UFARGS results in the initialization of the GRIP variables to the values known to the User Function program. The value of the GRIP variables are assigned back into the User Function variables at the termination of the GRIP program. Any additional calls to UFARGS results in a run-time error to avoid confusion of which arguments get written back to User Function.

The following limitations exist:

ALL OF GRIP NC
PLNOTE
EDTXHT
CHAIN
BLANK
UNBLNK
RVBLNK

Parameters

Parameter

Description

parameter list

The parameter list is composed of the following elements in any order:

  • a numeric variable

  • a variable that is a numeric array

  • an object variable

  • a variable that is an array of objects

  • a string variable

  • a variable that is an array of strings

NOTE: Constants, such as UFARGS / 5, 'string' are not allowed.

IFERR,label:

Specifies a label to which program execution jumps if an error occurs. The IFERR can be invoked for reasons such as an invalid argument list or program not executed from User Function.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.