Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic Non-Visual Class
Message
From
02/08/1999 14:26:17
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00248925
Message ID:
00248936
Views:
21
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform