I am trying to save "#dbg_desc" before modifying it, but it seems not to work.
In the attached code, I copy "#dbg_desc" in an auxiliary string, but after the operation, the string is empty
(I have tried with strcat too).
Code:
desc:JJ-Test-JSFX-01
slider1:0<-10,10,1>A slider
@init
#dbg_desc_save = "";
strcpy(#dbg_desc_save,#dbg_desc); // doesn't seem to work ?
@slider
val = slider1;
val >= 5 ? strcpy(#dbg_desc,"A new hope !"); // this works
val <= -5 ? strcpy(#dbg_desc,#dbg_desc_save); // this works
Before moving the slider, one can observe in the debugger that #dbg_desc has its correct initial value, the name of the plug-in.
Is there something I am doing wrong ?
Regards.
J. Jack.