Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic Non-Visual Class
Message
De
02/08/1999 14:26:17
 
 
À
02/08/1999 14:11:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00248925
Message ID:
00248936
Vues:
27
Hi Nat,

>When I "Dimension iaTestArray[1,1]" in the define class section, and assign a value to it... it seems as though everything is ok... but when I look at the type of the property, it is listed as character, and re-dimensioning the array doesn't seem to work either -- it is still viewed as a character property.

As Far As I Know, it will return the type of the first element but the Array still exists, try this code:
oArray=newobject('arrayprop')
?type('oarray.a')
dimension oArray.a[2]
oArray.a[1]='mike'
oArray.a[2]='helland'
?oArray.a[1]
?oArray.a[2]
?type('oarray.a')
DEFINE CLASS arrayprop AS custom
	Name = "arrayprop"
	DIMENSION a[1]
ENDDEFINE
Then replace mike with a Logical or numeric value. You'll see the type as C,L or N but the other array functions still work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform