Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an array property in a CUSTOM class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00153188
Message ID:
00153189
Vues:
19
>Hi all,
>
>How does one create an array property when defining a CUSTOM
>class. I thought the following would do it but I get the message
>"A_Forms" is not an array when I try to reference it in one of the
>class's methods.


Hi Michael

I think you forgot the object in whom the array resides
>
>DEFINE CLASS  MY_CLASS  AS CUSTOM
>    A_Forms[1,2]
>    N_Forms  =  0
>
>    PROCEDURE ......
>        DIMENSION  <b>THIS.</b>A_Forms[8,2]
>    ENDPROC
>ENDDEFINE
>Thanks in advance.
>
>Michel Creppy.
Danijel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform