hi ,
2 form.. formA & customer card
CLEAR(fMC);
//custx.SETRANGE(custx."No.", "Customer No.");
fMC.SetParameters("Customer No.","Shipment Method");
fMC.RUNMODAL(21,custx);
How should I write parameter ?
or
fMC.RUNMODAL();
In this way the customer does not.
help me.
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
To pass parameters to the form other than the record, you need to create and call a function, as you did in your code. This, however, only works when using a variable of type Form, thus, you cannot pass any parameters with that RUNMODAL function. Instead use SETTABLEVIEW, SETRECORD, and GETRECORD functions to set up the record(s) shown. This only failes when you need to show values from a temporary table, as you cannot pass the rec itself but only set up the form's Rec variable to match your needs.
If you need to use the second method of calling the form, you cannot pass additional parameters using a custom function.
viewtopic.php?f=5&t=42390
In the function on the form assign the local to a global.
Before using Form.Run set the parameter Form.SetParamter(Value).
As long as your don't "clear" the form and then run it you should be good.
t