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:03:36
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
28/11/2011 03:48:41
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:
01529910
Views:
37
>>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

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform