parm pass help me..

actionsactions Member Posts: 2
hi ,

2 form.. formA & customer card

//custx.SETRANGE(custx."No.", "Customer No.");
fMC.SetParameters("Customer No.","Shipment Method");

How should I write parameter ?

In this way the customer does not.

help me.


  • Options
    krikikriki Member, Moderator Posts: 9,098
    What exactly do you want to do. It is not really clear.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!

  • Options
    vaprogvaprog Member Posts: 1,130
    There are 2 (main) ways of running a form from code modaly:
    [Action] := Form.RUNMODAL
    where Form is a variable of type Form. This function does not take any parameters.
    [Action] := Form.RUNMODAL(Number [, Record] [, Field])
    where Form is the literal FORM. This function does take 1 to 3 parameters.

    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.
  • Options
    David_SingletonDavid_Singleton Member Posts: 5,479
    David Singleton
  • Options
    TonyHTonyH Member Posts: 223
    You can add a function to the form that takes a local parameter.
    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.

Sign In or Register to comment.