Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if property is array, collection, etc
Message
De
21/10/2008 09:05:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355841
Message ID:
01356035
Vues:
31
>>>If someone created a class with a property named Count, I wouldn't care what kind of results their class gave me ;-) That would probably be the tip of the iceberg as far as unexpected behavior.
>>
>>But it was expected to behave like a collection, before VFP had collections. There were collection classes in frameworks, and they were designed to BE collections - you could call their item() method with number or character key. Which is the expected behavior - of a collection.
>
>I wasn't objecting to creating collection classes before VFP had collections. I was objecting to using a reserved word to name a property of a custom class.

Then Fox team has used a reserved word as a property of a base class later :).

Those troubles are over... but once upon a time, many versions ago, we had a variable named _text, which was used in several places as one to hold accumulated text - a long built string. Then came FP2.0, where _text was the handle of the textmerged file. Search and replace across dozen apps.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform