Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving Form2 Grid1 recordsource to Form1 Grid1 recor
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00733026
Message ID:
00733058
Views:
37
Soykan,

If you set form1 to be Private DataSession and form2 to be Default Datasession, then form2 will open up in form1's data session. If you do not close the table in form2 it will still be available to form1 when form2 is ended.

It sounds like you are giving the user some ability to picka table, browse it (using form2) to see if it's really what they want and then continue working with the table back in form1.

If so you can make form2 modal and return a value indicating continue or not to form1. If they continue you simply point the form1.grid to the current alias.

>i have two form named form1 and form2 . i have a command button on the form1 named "browse" and code of this button like under
>
>* form1 browse button click code
>PARAMETERS param1,modeladi,LcDosya,LcFile
> cFileName = GETFILE("DBF","Select FileName...")
> IF ! EMPTY(cfilename)
>SELECT * from (cfilename) INTO CURSOR CrsResult
>DO FORM form\form2
> ENDIF
>
>and i am displaying on the Form2 selected (cfilename) dbf data's ( form2.grid.recordsource is CrsResult )
>
>Now... i wantto put a command button to the form2 with caption "retrieve this recordsource to the form1 grid recordsource "
>
>what should i do for this step by step ? how should be of this button click code ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform