Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can cursors be passed from Form A to B?
Message
From
28/11/2011 06:10:40
 
 
To
28/11/2011 06:03:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01529824
Message ID:
01529912
Views:
33
>>>Never happened to me that it could prove the scatter caused anything. Just mentioned it because others (Tamar, I think) said it's possible.
>>
>>It's easy to test - did so last week
>>
>>If form B has a private datasession
>> - it creates an object (other than the onces that have private datasessions)
>>- then puts that object in Form A
>>- then releases
>>
>>you will see an unknown datasession, that will disappear as soon as you set the object in form A to null
>
>Wow! This implies some behind-the-scenes connection between the scatter object and the alias it was scattered from.
>
>Perhaps an anonymous scatter would help? Something like
>
>
o=createobject("empty")
>n=afields(aa)
>for i=1 to n
>   addproperty(o, aa[i], eval(aa[i]))
>endfor
>return o
I'd be surprised - In fact I'm sure it won't work since the empty object is also created in form B (with a private datasession)

Unless you call a method of an existing object, created in datasession 1, which returns a new empty object
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform