The information in this article applies to:
- Microsoft Visual FoxPro for Windows, versions 3.0 and 3.0b
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.
MORE INFORMATION
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
- Run the form.
- 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.
|