Skip to content

Data_Field - cSelectionSource

Identifies the database table column from which data is to be stored, retrieved, and cleared

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Parameters

Parameter Type Description
iItem Integer Item number (0 if omitted)

Syntax

Property Integer Data_Field
Access Type Syntax
Read Access: Get Data_Field to IntegerVariable
Write Access: Set Data_Field to IntegerVariable/Value

Description

Each Entry_Item may have a column in a database table associated with it. The Data_Field property identifies the database table column from which data is to be stored, retrieved, and cleared.

Entry_Item Customer.Name

The table column may also be set using the Data_Field message. This may be done if an entry item needs to be set to another table column than the initial one.

Integer iColNum

Set Data_File to Customer.File_Number
Get_FieldNumber Customer.Address to iColNum
Set Data_Field 0 to iColNum

If the Entry_Item is not associated with a database table column (it is associated with an expression or variable), the value of this property is 0.