PRB: MSDataList/MSDataCombo Controls Do Not Work in VFP (162143)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q162143

SYMPTOMS

The Microsoft DBList and Microsoft DBCombo are ActiveX controls that ship with Visual FoxPro 5.0 and higher. These controls are very similar to the Visual FoxPro Combo Box and List Box. The Help for the DBList and DBCombo states the following about the RowSource Property:

RowSource: Name of Data control used as a source of items for the list portion of the control.

When you look in the Property Window for the RowSource Property it is not there. You cannot use the control because this property is missing.

CAUSE

The DBCombo and DBList are complex data-bound controls that are unsupported in Visual FoxPro.

The RowSource looks for a Visual Basic DataControl Object. Because Visual FoxPro is a database development system, it does not need a DataControl to access data and there is no equivalent object in Visual FoxPro.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a new Form.
  2. Place an OLE container control on the Form.
  3. In the Insert Object dialog box, click Insert/Create Control.
  4. From the Control Type List, select Microsoft DBList Control.
  5. With the Olecontrol selected on the form, click the Properties Window.
  6. Look for the RowSource Property for Olecontrol1. Note that you cannot see a RowSource Property for Olecontrol1.

Modification Type:MajorLast Reviewed:2/5/2000
Keywords:kbbug kbinterop KB162143