Hello,
KRC2, KSS5.6, KR5002MT + track KL1500-3 + turntable
I've been successfully using UserTech KFD files to get custom menus. However, I have an error when trying to write (with a script) to a STRING (CHAR[]) field of a custom STRUC.
This is how my STRUC is defined :
Code
DEFDAT MdiManager PUBLIC
GLOBAL STRUC MDIACTION_T CHAR Module[8], INT ID, MDICONTEXT_T Context, BOOL AutoQuit
DECL GLOBAL MDIACTION_T requestedAction = {ID 0, Module[] " "}
ENDDAT
I can change the ID (INT) field by mean of this script :
But neither of these script will work on the field Module[] (String) :
Code
DEFSCRIPT NewMDI_2001
SETVAR(FULLPATH[] "requestedAction.Module[]", VALUE[] "CELL")
ENDSCRIPT
DEFSCRIPT NewMDI_2003
SETVAR(FULLPATH[] "requestedAction.Module", VALUE[] "CELL")
ENDSCRIPT
DEFSCRIPT NewMDI_2004
SETVAR(FULLPATH[] "MdiManager/requestedAction.Module[]", VALUE[] "CELL")
ENDSCRIPT
So my question are :
- Is it possible to set string fields through SETVAR in KFD scripts ?
- What is the proper syntax for FULLPATH[] ? Is it documented somewhere ?
Thanks,