Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing informations between forms
Message
From
24/10/1997 09:51:00
 
 
To
24/10/1997 09:42:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00056520
Message ID:
00056525
Views:
28
>>I'm using VFP 5.0a, private data sessions and buffered tables.
>>
>>Form "A" have a grid (based on a view) and a command group ("New", "Modify" and "Delete")
>>Form "B" (modal) have text and edit boxes corresponding to each column in form "A" grid.
>>
>>The reason of the separate form for editing, is that I already have a pageframe on the form "A" and with a 640*480 resolution, I don't have enough space to put another pageframe.
>>
>>"New" call form "B" wich shows empty fields
>>"Modify" call form "B" wich shows the current fields
>>
>>Question: What is the best way to pass informations back and forth between these two forms?
>>
>>Can't use parameters or properties, because of the memo fields.
>>I'm not sure I can access form "A" view from form "B", because of the private data sessions.
>>The only solution I see for now, is using a temporary table to store the information. This is slow and could cause problem if the user open two sessions of the application.
>>
>>Any suggestions?
>
>Firstly, you can access view from form 'A' anytime using Form.Datasessionid and SET DATASESSION. I guess it would be the simplest way. If you want to pass some non-data information you can always store it in some custom properties of form 'A', and refer to form 'A' from form 'B' (it doesn't matter that B is modal form).

Thanks for the response Edward, just what I needed.
Previous
Reply
Map
View

Click here to load this message in the networking platform