Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access Method
Message
 
 
À
21/12/2019 10:47:24
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01672305
Message ID:
01672380
Vues:
62
>>Now I need to figure out how to create a PROPERTY in the PRG class and check the box Access method.
>>But I see now that I was missing a couple of points. Thank you.
>
>Believe it or not, it's as simple as listing a property value among other properties, and then creating an access method:
>
>
loExample=createobject("JustExample")
>?loExample.customProperty
>
>define class JustExample as custom
>   customProperty="some text"
>
>   procedure customProperty_access()
>      return "some other text"
>enddefine
Your example works. Thank you.

My problem was that I used the word "Function" instead of "Procedure" in the class where the Access property was used. Once I made the change, I can see the light :)
Thank you and all who took the time from preparing for the holidays and instead helping me :))
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform