Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access Method
Message
 
 
À
21/12/2019 18:07:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01672305
Message ID:
01672395
Vues:
53
>>Hi,
>>
>>I looked at the VFP 9 help but the explanation of Access method is not easily understood. Could someone explain the purpose, the use, and advantages of using the Access Method (e.g. something_Access).
>>
>>TIA
>
>The real strength of Access is not with my Property_Access, but with vfpProperty_Access.
>Using this method it is possible to intercept the readings that does VFP.
>It's all undocumented, but it allows you to do things otherwise impossible.
>
>Example: with Enabled_Access you can implement a complex enable logic
>into the base classes.
>
>Obviously it requires a lot of reverse engineering, but it's worth it.
>Another use is to make expressions dynamic which are normally static.
>Example:
>
>HIDDEN PROCEDURE ToolTipText_Access
>RETURN EVAL (m.This.ToolTipText)
>ENDPROC
>
>
>In this case ToolTipText is not a string (data),
>but an expression (metadata) ( The correct name would be EVAL (m.This.eToolTipText) ).

Thank you.
"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
Répondre
Fil
Voir

Click here to load this message in the networking platform