Microsoft KB Archive/141914

= PRB: Record Number is Not Refreshed in Status Bar =

Article ID: 141914

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q141914



SYMPTOMS
Changes to the current record number are not reflected in the status bar while using the outline control.



WORKAROUND
Click outside the outline control to refresh the status bar.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a new form, and drop an OLE Container Control onto it. Select Insert Control for the OLE Container, and select Outline Control for the Control Type. Add Vfp\Samples\Data\Employee.dbf to the Data Environment, and set the Order property of the Employee cursor to L_NAME.  Place the following code in the form's Init event: SELECT Employee GO TOP FOR lnI=1 to RECCOUNT THISFORM.OLECONTROL1.ADDITEM(last_name,lnI) THISFORM.OLECONTROL1.INDENT(lnI)=1 SKIP ENDFOR THISFORM.REFRESH   Inside the Outline Control's DBLCLICK event, type the following: =SEEK(THISFORM.OLECONTROL1.LIST(THISFORM.OLECONTROL1.LISTINDEX))   Open the Debug Window and type the following on the left side: RECNO   In the Command window, type: SET STATUS BAR ON                       </li> Run the form.</li> Double-click any item in the outline control. The Debug Window correctly displays the current record number. The Status Bar isn't updated with the current record number. For the status bar to be updated, place the focus outside the outline control.</li></ol>

Additional query words: VFoxWin

Keywords: KB141914

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.