Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse as a method name
Message
 
 
À
14/11/2011 14:43:59
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:
01528788
Message ID:
01528893
Vues:
100
>>I am planning to use the word "browse" as a method name. I know it obviously is a VFP command, but since I have used "ADD" as a method name with no unfortunate effects, I would like to get your opinions please.
>>
>>If this turns out to be unwise, any other names you guys can suggest in lieu of "browse"?
>
>You can safely create a method with a name "Browse" and not have any side-effects (others here may disagree with this) since the method always has to be called as part of the parent; i.e., thisform.Browse(). This will not be in conflict with the BROWSE command -- they have difference syntax in the calling. Now that being said, what if you miss typing the period? Then you would have an error that may not be obvious. Also, if others are going to also work with the code, it could lead to confusion as to which Browse is being used by another person.
>
>I would recommend using a name that is not generic but specific; something like BrowseOrders() -- indicate in the name what you intend to browse...

I hope this isn't being too quibbly, but wouldn't you want a browser to be more generic than that?

BTW, I hope Dennis actually has a grid in mind, not a browse window. That would be REALLY retro.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform