Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private properties in defined class
Message
De
18/09/2002 20:44:09
 
 
À
18/09/2002 20:02:39
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00702088
Message ID:
00702091
Vues:
14
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform