Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Application Return Codes

  • Last UpdatedOct 06, 2023
  • 1 minute read

Some applications can return values as the result of executing a command. These values are assigned to default variables named as follows:

RET_CNT = No. of values returned.

RET_1 = 1st. value returned.

.

.

.

RET_N = Nth. value returned.

These variables can be treated like any other but the user should be aware that the next application command may change these variables therefore any required results must be assigned to user defined variables.

for example,

 $VARIABLE num intx inty intz

;

; Execute application command

;

INTERSECT SECTION 5 WITH FOS

;

; Check return code

;

$IF RET_CNT = 0 THEN $GOTO %NO-INT

;

; Save result in user variables

;

$SET intx RET_1

$SET inty RET_2

$SET intz RET_3

.

.

$EXIT

%NO-INT

;

; No intersection found, print appropriate message

;

$PRINT "NO INTERSECTION FOUND"

$EXIT

Related Links
TitleResults for “How to create a CRG?”Also Available in