Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method names suggestion
Message
From
14/03/2013 13:53:31
 
 
To
14/03/2013 13:09:22
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01568344
Message ID:
01568402
Views:
57
>>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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform