Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property doesn't refresh
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00016571
Message ID:
00016578
Views:
58
>Hi guys,
>I have a form with a pageframe and in page1 I have
>a textbox whose control source is something like
>THISFORM.MyProperty, In the load event of the form
>I do this THISFORM.MyProperty='Apple', and the value
>shows up fine in the textbox, then in my navigation
>buttons I update the property every time the user
>clicks on Next,Prev,etc... with:
>THISFORM.MyProperty=table1.field1
>This works only the first time the user clicks on the
>navigation buttons, after that the property doesn't
>hold the new values, I ran the form with the debug window to check the value of that property and the
>value of table1.field1, and it is moving the pointer
>in table1, but THISFORM.MyProperty holds the value
>for a moment and inmediatly changes to EMPTY,
>my LockScreen property is .F. before and after the
>property is assigned a new value, and still the new
>value is not reflected. What amI missing ?
>Thanks in advance
>luisg@netrunner.net

May be you're missing nothing, but your coding is too complicated for Fox?! It's probably enough to issue something like thisform...textbox.value=table.field every time you move pointer. Normally navigation buttons should include 'refreshing' method to change Value/Caption properties. It's much more robust than to use ControlSources.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform