Is there a way to update value of a variable via HookAddCode? For example
- I have hook Plugins.HookAddCode(null, "FormPayment.Load_update", CurPat, text);
- I change "text" value inside hook code
Is there anyway I can retrieve new value of "text" variable? Or may be get the hook return values other than Boolean?
Thanks
change variable value via hook code?
Re: change variable value via hook code?
http://opendental.com/manual/patternplugins.html
Parameters
...
For parameters that are value types and for strings, if a user wishes the changed value to persist after the hook is run, then we will need to follow this pattern:
Code: Select all
object[] parameters={myInt,myStr};
Plugins.HookAddCode(this,"FormClaim.GetClaims_beginning", parameters);
myInt=(int)parameters[0];
myStr=(string)parameters[1];
Re: change variable value via hook code?
Thanks for your help. Can you add an other hook in this thread (last post): viewtopic.php?f=3&t=5884#p25715
MOpenSoft
info@mopensoft.com
info@mopensoft.com