Hi,
I would like to assign an array (string) to another array but I got error information that " right side: array invalid"
I tried many combinations and I can't find the right syntax.
Could you help?
Here is the sample code:
Code
DEF MSG(TOSHOW[]:IN)
INT ANSWER
INT OFSET
DECL STATE_T STATE
DECL MSG_T EMPTY_MSG
CHAR TOSHOW[]
EMPTY_MSG={MSG_T: VALID FALSE, RELEASE FALSE, TYP #NOTIFY, MODUL[] " ", KEY[] " ", PARAM_TYP #VALUE, PARAM[] " ", DLG_FORMAT[] " ", ANSWER 0}
$MSG_T=EMPTY_MSG
$MSG_T.MODUL[]=" "
>>> $MSG_T.KEY[] = TOSHOW[] ; HERE IS THE ERROR (I CANT ASSIGN TOSHOW[] TO KEY[]) <<<
$MSG_T.PARAM[]="PARAM"
$MSG_T.PARAM_TYP=#VALUE
$MSG_T.TYP=#NOTIFY
$MSG_T.VALID=TRUE
END
Display More