Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DEFINE CLASS with array property
Message
 
To
23/09/2003 05:20:59
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00831361
Message ID:
00831365
Views:
15
Rename Array APROPERTY[] to another name...

MartinJ

>I know it must be simple but I can't sort it out.
>How does a DEFINE CLASS Statement looks like defining a property as one dim. array with an associated access method.
>
>DEFINE CLASS ...
>APROPERTY[1]=.f.
>PROCEDURE APROPPERTY_ACCESS
>lparameters m.nIndex1
>RETURN THIS.aproperty[m.nIndex1]
>ENDPROC
>ENDDEFINE
>
>does not work. "APROPERTY is not an array"
>
>I created a class with a property as array/access_method in the class designer and run the document wizard to create a source code listing: the procedure was there. I can find all other userdefined properties but no array definition at all.
>
>Giesbert
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform