Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove classes from memory?
Message
De
09/02/2011 03:37:55
 
 
À
09/02/2011 02:19:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01499307
Message ID:
01499323
Vues:
64
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform