Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse as a method name
Message
De
14/11/2011 17:08:48
 
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:
01528879
Vues:
79
J'aime (1)
>>>I think I am the exception that confirms the rule, I have always used "reserved" words and I've never had a problem with them; in particular I cannot see how will you have problems with the name of a method, as it is one of the core values of OOP to have methods of the same name in different objects doing different things, and if someone else cannot see the difference between the BROWSE command and a Browse method, then they have no business looking at my code :)
>>
>>
>>>I think I am the exception that confirms the rule,
>>
>>+ 1, makes to two of us
>>
>>The only problems I have had
>>
>>(1) using Database
>>(2) using with and height on a cursor based class
>
>I feel much better now, "mal de muchos, consuelo de tontos" :) (I think the English equivalent is "Misery loves company")
>
>Interesting problems you had, I never tried either one of those

Do you want to see how bad it can go if you use reserved names for what they are not intended? Try this
Create Cursor _screen (height i, width i, visible l)
Insert Into _screen (height, width, visible) Values (500,500,.t.)
Browse
If you are really bold, replace the second line with this
Insert Into _screen (height, width, visible) Values (-5000,-5000,.f.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform