Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array in class
Message
De
13/03/2003 03:27:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/03/2003 03:19:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00765275
Message ID:
00765278
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform