Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array in class
Message
From
13/03/2003 03:27:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/03/2003 03:19:59
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00765275
Message ID:
00765278
Views:
24
>How can I define property as an array in a class?
>thank you

Add property with a dimension. ie:
To add a new property named myProperty you'd enter just myProperty
To add a new property named aMyArrayProperty which is an array you'd enter :
aMyArrayProperty[1]

In code :
oObj.Addproperty('aMyArray[1]',.f.)

PS:Initial dimension and value is up to you. You could change that anytime.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform