Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private properties in defined class
Message
From
18/09/2002 20:44:09
 
 
To
18/09/2002 20:02:39
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00702088
Message ID:
00702091
Views:
13
Try this:
DEFINE CLASS objectGet as Custom OLEPUBLIC
   ListArray = 100
   
   PROCEDURE ListArray_ACCESS && Access method
      RETURN THIS.ListArray
   ENDPROC
   
   PROCEDURE ListArray_ASSIGN && Assign method
      LPARAMETERS tAssign  && Required to accept value
         THIS.ListArray = tAssign
   ENDPROC
ENDDEFINE
HTH

>how do i create a private property in a class? is this correct?
>
>DEFINE CLASS objectGet as Custom OLEPUBLIC
>
>private ListArray
>
>Procedure getValues
> ** retrieves values from the ListArray
>
>EndProc
>
>ENDDEFINE
>
>what i want to happen is the class has the ListArray as a property, but can't be accessed directly, instead it is to be accessed through the getValues procedure. Am i on the right track?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform