Anish Abslom
12/14/2005 2:27:00 PM
Hi Jens,
If I am not wrong is the scenario something as followsâ?¦.
You need to pass a value from your form to your classâ?¦
If that is the case then it is straight forward approach��..
Step1
Declare a variable of salesid in the class declaration of your class
Follow this piece of code
class Class1
{
salesId salesid;
}
Step2
Create a method by name â??newâ? in your class with a parameter value
Follow this piece of code
void new(salesId _salesId)
{
;
salesId = _salesid;
}
Step3
Initialize this class in your event from where ever you want to supply your
sales Id
Is it from your forms , tables or even another class it self as follow���.
static void Test_Parameter_transfer(Args _args)
{
class1 class1; //class declaration
;
class1 = new class1("ax0017"); //class initialization with salesID
print class1.parm_method(); //printing the value from the class
pause;
-------------------------------------------------------------------------------------------------------
If you are trying the full code donâ??t forget to put this piece of code in
your class (class1)
salesId parm_method()
{
;
return salesId;
}
Hope this will solve your issueâ?¦.
With regards
Anish