Is it possible to pass a value to a method?
I see in the editor that all methods have () at the end -- which makes it seem like it would be possible to pass a value to a method -- but if so its not clear to me how.
Thanks for your help!
method(a, 1, b, 3, ...)
var param1 = arguments[0];
var param2 = arguments[1];
var param3 = arguments[2]; etc.
var a = 'text1';
var b = 'text2';
forms.company.MethodB(a, b);
var a = arguments [0];
var b = arguments [1];
var frm = application.getMethodTriggerFormName()
if(frm == 'Form1')
{
//do form1 stuff here
}
elseif (frm == 'Form2')
{
//do form2 stuff here
}
else
{
//do other form stuff here
}
Users browsing this forum: No registered users and 8 guests