Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove classes from memory?
Message
From
09/02/2011 03:37:55
 
 
To
09/02/2011 02:19:00
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:
01499307
Message ID:
01499323
Views:
63
Show us some sample code which starts without the classes loaded, and leaves the classes in memory. Also see my message Message ID: 1496651 which is related.

Most of the code relies on the following:

1. oCursors property with an Access method which returns a collections of cursor objects.
2. a GetCursorObject() which is passed an Alias parameter, with the code below:
FOR EACH loCursor IN This.oCursors       && this triggers oCursors_Access() and returns collection of cursor objects
   IF loCursor.Alias = tcAlias
       loCursorObject = loCursor
       EXIT
   ENDIF
ENDFOR
You think it is not a good practice to do this?

Dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform