Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method names suggestion
Message
De
14/03/2013 13:53:31
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
14/03/2013 13:09:22
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01568344
Message ID:
01568402
Vues:
56
>>I find this a little bit cumbersome, so it would be best to have two methods, one to save the original position and the other to move back to the original position. But I am at a loss how to name those methods, everything I can come up with ("SaveRecordNumber", "MoveBackToRecordNumber") do not sound anything intuitive. Anybody has a bright idea how to name those methods?
>
>A better practice is to instantiate an object that remembers the record number. When destroyed (if by release method or simply going out of scope) it resets the record number.

In theory I agree wholehartedly, but as object creation in vfp is comparatively [to C# for instance] slow and setting records also is needed sometimes directly inside loops this is one operation I leave just to bare vfp - it is one of the strengths and should not be burdened with method call or creation overhead. Of course YMMV as always...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform