Hi!
I am trying to pass a string to a function which results in an error, can someone help me? I am stuck
Code
MAIN.DAT
--------
GLOBAL CONST INT ROBOT_ID = 1
product_recipe[34,100]
STRUC CURRENT_T INT insulation_no, insulation_id
MAIN.SRC
--------
DECL CURRENT_T current
INT product_id
product_id = 1
; The following line gives error 2219 Operand or expression expected
current = NEXT(ROBOT_ID, product_recipe[product_id,]) ; I only need the string part passed, not the whole array of products and strings
DEFFCT CURRENT_T NEXT(robot_id:IN, recipe[]:OUT)
DECL CURRENT_T current
INT robot_id
CHAR recipe[]
...
RETURN current
ENDFCT
Display More
Thanks!