Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What method to use instead of Refresh?
Message
From
21/06/2012 11:44:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01546511
Message ID:
01546519
Views:
52
>>>Hi,
>>>
>>>I have a textbox "bound" to a cursor/view. I put bound in quotation marks because I don't want to use the ControlSource of the text box. Instead the "binding" has to be done in code. So that every time the record pointer moves, a new value appears in the text box. Natural thing would be to put this code in the Refresh method of the text box. But I think that Refresh would fire too often; even when the record pointer has not moved. What other method would you recommend to use for this purpose? TIA.
>>
>>Use valid() method.
>
>Would Valid() automatically fire on every record pointer move?

No, I don't think it would. Why don't you just bind right after the record pointer moves. I am assuming, of course, that your code is aware of when the pointer moves.

But then again, I'm a little confused as to why you don't bind to the table field at the get-go and then the form level refresh would handle the textbox level, unless you're actually changing the field the textbox is bound to, and again - why not do the binding there, since you KNOW things have changed.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform