Another SKILL++ question!
I have a procedure that has a class instances as well as a form declaration. I would like to have the form callback use a class instance method. My current solution is to declare the class instance using "inSkill" so that it is global to the form. Is there a way to keep it private?
procedure( makeForm() <-----this procedure is in a SKILL++ .ils file
obj = makeInstance( 'MyClass)
b_run =hiCreateButton(
?name 'run_button
?buttonText "Run"
?callback Run(obj) ; <--- Option 1 Evaluates immediatly
?callback strcat("Run(" myObjName ")"); Option 2 requires myObjName, a string that refers to an object instances, as well as whatever the object instance is to be global
)
)
Option 1 doesn't work at all but is kinda what I'm looking for, where I just want Run(obj) to happen when the button is pressed. obj is kept private
Option 2 is what I am currently doing, in another area I run the makeInstance "inSkill".