Hi Kengwen,
If you wish to pass a parameters to a form you can do it with
DO FORM WITH parameter. You need to have a PARAMETERS statement in the INIT event of the receiving form.
To return a value from a form you can RETURN a value in the UNLOAD event of a form. The form returning a value needs to be MODAL.
HTH
Liam
>Dear Glenn,
> I am not understand the method you told me. Do you have any sample code for reference?
> I would like to describe more details about what i am try to do. Let's me give a sample.
>1)I have a main form that for display and key in Invoice details. A grid is keep record of the Invoice sales items record. Each items records have unique Invoice number.
>2) after key in all the sales items record of the Invoice, the records will save into Invoice Table which they will have same invoice number(primary key)
>3) i will have another form(to search out the particular invoice details) which have a grid and have records sort by the invoice number.
>4) if chose the particular invoice number, i wish to pass the parameter to the main form for display the chosed invoice sales items records on the main form grid.
>5) in that way, i can modify the records or delete the records or whole invoice record.
>
>Do you think that is posible to do it with the way you told me ? and how ?thanks
>
>
>regards,
>kengwen
Liam O'Hagan
MCP VFP Desktop Apps