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:
00153191
Vues:
21
Ok, we agree that a line in question is
DIMENSION  THIS.A_Forms[8,2]
Check your original message once again, and you'll find that that line didn't have "THIS" in it, but rather like
DIMENSION A_Forms[8,2]
I believe that was causing the trouble.


>Danijel,
>
>Perhaps I have not explained myself clearly. In the code below the PROCEDURE
>defines a method of the custom class I am defining. Within that
>method I try to re-dimension the array property using DIMENSION This.A_Forms[8,2]
>but FoxPro stops at that statement telling me that This.A_Forms
>is not an array. The whole code is exactly as shown below.
>
>Michel.

>>
>>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 THIS.A_Forms[8,2]
> ENDPROC
>ENDDEFINE
>
>>>Thanks in advance.
>>>
>>>Michel Creppy.
Danijel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform