Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Matching Code
Message
De
31/03/2021 05:54:02
 
 
À
30/03/2021 17:51:16
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01679350
Message ID:
01679382
Vues:
44
True,but setting up locals, getting values and at end resetting also takes time.
Having witnessed "With" problems, my choice often is to use proxy objects, setting value once to shorten access path.
local loProxyPage1
loProxyPage1 = This.parent.parent.Page1
if loProxyPage1.txt_UserName1.Value == loProxyPage1.txt_UserName2.Value
endif
*** lots of other control handling with shortened access path
>It is slower to operate with objects than memvars.
>LOCAL lcUser1, lcUser2
>lcUser1=This.parent.parent.Page1.txt_UserName1.Value
>lcUser2=This.parent.parent.Page1.txt_UserName2.Value
>IF not ALLTRIM(m.lcUser1)==ALLTRIM(m.lcUser2)
> *It's not exact.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform