PRB: Bound Control Does Not Show Current Record Value

ID: Q130347

3.00 WINDOWS kbtool kbprb

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, version 3.0

SYMPTOMS

If the record pointer is moved, the value property of a bound control does not appear to update properly.

CAUSE

The value property of a bound control is not refreshed automatically.

RESOLUTION

To refresh a bound control, issue thisform.refresh or trigger the gotfocus method.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Problem

1. Create a new form.

2. Add a textbox object as txtget1.

3. Set the controlsource of the txtget1 to customer.company.

4. Add a commandbutton object as cmdskip.

5. In the click method of cmdskip, type:

   SKIP

6. Save the Form.

7. In the Debug Window, type:

   _screen.activeform.txtget1.value

8. In the Command window, type:

   USE customer
   DO FORM

9. Click the cmdskip button to see that the the value of txtget1 does not
   change in the Debug Window. Note that the value changes if you click in
   the txtget1 textbox or if you add thisform.refresh to the click method
   of cmdskip after the SKIP command.

Additional reference words: 3.00 VFoxWin KBCategory: kbtool kbprb KBSubcategory: FxtoolFormdes
Keywords          : FxtoolFormdes 
Version           : 3.00
Platform          : WINDOWS


Last Reviewed: May 1, 1996
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.