Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make Memory variables use Private Data Sessions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00580254
Message ID:
00580311
Views:
19
Sergey, thanks for your helpful comments.

If I do as you suggest,(Scatter memvar Name OBJECT , will I have to modify my converted screens whos DatSource is just M.Myfield

Will I Have to change All my Data Sources to something like
MyObject.Myfield....and how will it know which data session its in ?

Regards,

Gerard



>>Hi,
>>I am converting a 'lot' of screens from 2.6 to 6 and have made the screens Private Data sessions.
>>
>>Typically, I have a button on the screen which Scatters Memo Memvar and all the fields have M.MyfieldX as Control Source.
>>(At this stage, I dont want to change to Views Yet)
>>
>>However, even though the DataFiles are behaving correctly in their Private Data Sessuins, the Memory Variables (which are my ControlSources) seem to still be shared If I have , say two screens open, for 2 separate account records)
>>
>>I'm wondering is this behaviour correct or can I do something that ensures that my memory variables are private as well.
>
>The memory variables scope isn't affected by setting datasession to private. It means that SCATTER MEMVAR in Fox 2.x format cannot be used in forms if you want to open more than one copy of the form. The clossest thing to your approch is to use SCATTER MEMVAR NAME < object name > and GATHER MEMVAR NAME < object name >. Just remember that there is no INSERT FROM MEMVAR NAME < object name >.
Previous
Reply
Map
View

Click here to load this message in the networking platform