Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set the correct Private datasession in a form
Message
From
03/07/1998 19:42:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00112802
Message ID:
00114158
Views:
36
Alvin,

try to create a new form with just a grid and a private Datasession
do you have the same problem?

Arnon
>Thanks Arnon,
>
>Here is the reason why i assumed that the data session isn't set.
>
>The form works ok when datasession is set to 1, but when i changed it to 2 (private datasession) the grid doesn't refresh. the grid only refreshed after i changed the data session to 2 using the command.
>
>Maybe it has something to do with binding the field to the grid controlsource.
>
>>>When you set the form to a Private datasession.
>>>
>>>I expect the form to set to it's data session.
>>>
>>>However if you look at data env after running the form it's set to default.
>>>
>>>I tried to put this code in the forms init event. but still couldn't make it to point the the correct data seesion.
>>>
>>>set datasession to thisform.datasession
>>>
>>>TIA
>>
>>Alvin,
>>the form does set the datasession to its own
>>- the "problem" is that it is set only when the form is active
>>(or when you SET DATASESSION explicitly)
>>if you run the form in debug mode you'd see the various controls reference the tables/views in the currect data session
>>
>>IAC
>>when you suspend the form you can type SET
>>and then chose the form's datasession using the combobox
>>(if you want to browse etc any table from the form's Data session)
>>
>>Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform