Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass grid parameter to another form's grid ?
Message
From
26/12/2000 05:28:44
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
26/12/2000 00:04:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00456745
Message ID:
00456782
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform