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.
=============== Original message follows ================
>>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 THIS.A_Forms[8,2]
ENDPROC
ENDDEFINE
>>Thanks in advance.
>>
>>Michel Creppy.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only