Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Change datasession at run time
Message
From
25/02/2003 11:53:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00757479
Message ID:
00757625
Views:
9
Yes Fred,
and meant that putting _screen in parentheses.

>>>>set datasession to _screen.DataSessionID
>>>>*..
>>>>set datasession to thisform.DataSessionID

Cetin

>>Till you change the session back you'd be seeing default data session (_screen's).
>>Cetin
>
>Careful, Cetin. Default DataSession doens't necessarily mean _SCREEN's datasession. If you call up your form with the Default DataSession from a Private DataSession form, it will be using the same datasession as the form that called it.
>
>
>>>Hi Cetin, thanks for your reply.
>>>
>>>>But still you can't move the cursors between sessions (you can move arrays
>>>
>>>I'm not sure if I follow.
>>>Does this mean that ,If I change the data sesion in code, My Form will be able to 'See' my cursors as if it were a default data session ?
>>>
>>>regards,
>>>
>>>Gerard
>>>
>>>
>>>
>>>>>I Have a form which prints documents... working fine as a private data session..uses afew files etc.
>>>>>
>>>>>I now want to call this form from another form and do as little change to the form as possible. I can populate all files that are required beforehand, but because its a Private data session, it does not see them ??
>>>>>The easiest thing for me woudl be just temporarily, change the Datasession to a Default data session, and then my files can be seen.
>>>>>
>>>>>Anybody know a way of doing this or if not, some iother suggesyions ?
>>>>>
>>>>>Regards,
>>>>>
>>>>>Gerard
>>>>
>>>>set datasession to _screen.DataSessionID
>>>>*..
>>>>set datasession to thisform.DataSessionID
>>>>
>>>>But still you can't move the cursors between sessions (you can move arrays or objects).
>>>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform