Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro arrays vs. Clipper arrays
Message
De
21/08/2001 17:49:47
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
21/08/2001 06:31:09
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00546619
Message ID:
00547011
Vues:
15
For what it's word, an "object" that stood in for an array or a collection could accomplish the array functions that are missing; eg.

1) a property used to track the number of elements (if it's zero, the array is empty) and another to represent the actual array.

2) passing "{1,2,3,4}", etc, to the .Init() event could handle array initialization (after parsing of course).

3) custom methods to simulate AADD(), etc. would increment/decrement the property in (1) above, including the sizing of the array.

It's worth noting that we rarely get a feature added to VFP if it can be programmed in VFP itself.

The above is more in line with the way new "classes" are implemented these days; eg. the CString class in VC++.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform