en:software:qview:qview_6:qcl_library:vc10copy

This translation is older than the original page and might be outdated. See what has changed.

This is an old revision of the document!


VC10Copy

V = Variables

C = Calculation functions The VC10Copy function copies the value from a variable to another.

VC10Copy (dir, val01, val02)

Parameters:

IN/OUT VARIABLE TYPE EXAMPLE NAME DIM
IN CONST/GLOBAL dir F/L Copy direction variable
IN/OUT SYSTEM/GLOBAL vala F/B/W/L/S First variable
IN/OUT SYSTEM/GLOBAL valb F/B/W/L/S Second variable

Direction table

val01 > val02result = 0

All subsequent cases relate to val01 ⇐ val02 and analyze only Val03

val03 < val01result = 1
val01 ⇐ val03 < valore2result = 2
val03 >= val02result = 3

Example

Copy variable A to variable B

IF gfCopy
	gfCopy = 0
	vala = 1000
	valb = 5000
        dir = 1
        VC10Copy (dir,vala, valb)
ENDIF

Example

Copy variable B to variable A

IF gfCopy
	gfCopy = 0
	vala = 1000
	valb = 5000
        dir = 0
        VC10Copy (dir,vala, valb)
ENDIF

Note

  • The function
  • Last modified: 2022/05/03 12:30