Simple question

Miscellaneous Forums/General Discussion/Simple question

How about a function called setvar which takes a parm depending on what you want to do.
e.g. Function object_addvar(flag=0)
(or whatever depending on your normal naming convention. You migh use AddVar_to_object etc).
Then select/case on the flag and call seperate functions/methods from within your setvar function.