Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datasession of a prg based form vs vcx
Message
From
08/12/2011 18:58:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/12/2011 09:11:35
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Miscellaneous
Thread ID:
01530606
Message ID:
01530688
Views:
118
>>why did the grid keep the recordsource from the first instance when prg based, and not when vcx based?
>
>I would suspect that it would be due to VFP caching the class. The first instance that is created is cached and the properties retained; then the second time the properties are not reset unless specifically set .

Yep, which is why it now works - I'm setting the recordsource.

Still, why doesn't it cache the vcx based class? And... does this mean that for classes which are frequently instantiated, I better move them to prgs? Caching may give me some speed.

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