Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write expression vs. simple assign
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Write expression vs. simple assign
Miscellaneous
Thread ID:
00591462
Message ID:
00591462
Views:
56
Hi everybody,

In my colleague's code I see the following:
ThisForm.Cpageframe1.Page1.Wgpageframe1.Page1.writeexpression('Caption',[=("Current Record"+" of "+ALLTRIM(STR(Thisform.pnaddresses))+" total addresses")])
ThisForm.Cpageframe1.Page1.writeexpression('Caption',[=("Property Addr - ("+ALLTRIM(STR(Thisform.pnaddresses))+")")])
ThisForm.Cpageframe1.Page1.Wgpageframe1.Page1.cmdpreviousaddress.refresh()
ThisForm.Cpageframe1.Page1.Wgpageframe1.Page1.cmdnextaddress.refresh()
Do you know, why he is using WriteExpression and not just Page1.Caption = ...
What is benefit/disadvantage of one way to another?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform