>I have a code to filter the record from the table. Only selected record, I want to plot the graph in the form.
>
>How to pass the variable from the code to the form?
>
If you put a PARAMETER or LPARAMETER statement in the Initi method of the form, you can pass the value as an argument on the command line. If the value is needed outside of the Init, you'll want to create a form property and save it there, since the parameter will pass out of scope when the Init terminates.
To pass a parameter on the DO FORM command line:
cSomeKeyValue = <i> the value you want to pass</i>
DO FORM MyForm WITH cSomeKeyValue
LPARAMETER tcParamValue
IF PCOUNT() > 0
this.cMyKey = tcParamValue
ELSE
this.cMyKey = NULL
ENDIF
>Thanks