Hi experts !
Code
GLOBAL DEF WRITE_CM_SETTING(SETTING_IDX:IN, VALUES[]:OUT)
INT SETTING_IDX
INT VALUES[]
INT I
IF ((SETTING_IDX < 1) OR (SETTING_IDX > NUM_COLLMON_SETTINGS)) THEN
RETURN
ENDIF
FOR I = 1 TO 12
IF (VALUES[I] < 0) THEN
COLLMON_SETTING[SETTING_IDX,I] = 0
ELSE
IF VALUES[I] > 500 THEN
COLLMON_SETTING[SETTING_IDX,I] = 500
ELSE
COLLMON_SETTING[SETTING_IDX,I] = VALUES[I]
ENDIF
ENDIF
ENDFOR
END
Display More
Hi experts!
i see many "DEF" is created with variables :IN or :OUT
i really tried to find out about them. but still not understand
plz explain it to me, many thanks