Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private properties in defined class
Message
De
18/09/2002 20:56:08
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
 
 
À
18/09/2002 20:44:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00702088
Message ID:
00702092
Vues:
16
that's exactly what i want to do, but i want to stop the ListArray from being accessed through: objectGet.ListArray

how is this done?



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?
Sylvain Larin
iSynergy Inc.
Jordan Pastourel
Development Manager
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform