Share via


RowSourceType Property

Specifies the type belonging to the row source set for the RowSource property. Read/write at design time and run time.

For more information about using the RowSourceType property, see How to: Choose the Type of Data for a List or Combo Box.

Control.RowSourceType [= nValue]

Return Value

  • nValue
    Specifies a value indicating the type for the row source value in the control.

    The following table lists the values for nValue.

    nValue

    Description

    0

    None. (Default)

    1

    Value.

    2

    Table alias.

    3

    SQL statement.

    4

    Query (.qpr) file.

    5

    Array.

    6

    Fields.

    7

    Files.

    8

    Field structure of a table.

    9

    Pop-up. Included for backward compatibility.

    10

    Collection object.

Remarks

Applies To: ComboBox | ListBox

See Also

Tasks

How to: Allow Users to Add Items to a List Box

How to: Display Child Records in a List

How to: Populate Query Results in a Form Control

How to: Refresh a One-to-Many Display Based on a List Value

Concepts

Controls for Displaying Lists

Reference

RowSource Property

RecordSourceType Property

Other Resources

Properties (Visual FoxPro)