Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matching Code
Message
From
31/03/2021 05:54:02
 
 
To
30/03/2021 17:51:16
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01679350
Message ID:
01679382
Views:
46
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform