Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define an array property
Message
From
20/09/2001 13:54:45
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00558845
Message ID:
00558852
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Hi:
>
>I forgot how to define an array as a property in class. Can anyone help?
>
>Thanks!
>
>--Paul

If the class is in a class library, when you add the property (on the menu), name the property like this:
myproperty[1,1]
In the init or load of the class, you can redimension the property to whatever size you need.

For a programmatic class (in a .prg file), you simply the following in the first section of the class:
dimension myProperty[1]
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform