Parameters Passing to Forms

The call for Form open is known:

call OpenFormTop("ptEdit","FNAME.FM","WORK.TNAME",1,"?=TNAME")

 
In cases where we want to pass two more parameters, the code is as follows:

call OpenFormTop("ptEdit","FNAME.FM","WORK.TNAME",1,"?=TNAME",par1,par2)

Into the code of the called Form the parameters are taken as:

proc Form_Start()

   
parameter1 = __params[6{...par1}
   
parameter2 = __params[7{...par1}

end

Its obvious that parameter counting starts from "ptEdit" as (1).