Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a caption on a label on a form
Message
From
08/09/2008 10:24:44
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01345731
Message ID:
01345733
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I have a label on my form that I want to change depending on certain details in a table.
>
>My code to work out the new value is in the refresh method of the label.
>
>So when I know the details of the table have changed, I simply run the refresh method of the label.
>
>However, the changes can only be seen if I SET STEP ON and step thorugh the code?
>
>Thx in advance

I don't think that Refresh is the best place. Could you just reset label.caption from any form's event where it is needed? Please, also remember that in some dynamic situations you would be required to toggle label.visible property to achieve the result.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform