Applies to

All controls.

Description

Returns or sets a value of the default property for that control. The default property is the property which most clearly represents the control's data

Usage

Defaultproperty = Get_Property (objectname, "DEFPROP[,coords])

existingprop = Set_Property (objectname, "DEFPROP", newvalue [,coords])

Remarks

If control is database linked, then setting this property also sets SAVEWARN property for a window and updates the database-bound structures, like the DataSet Object, and enables field recalculation for Native Tables.

Values passed in Set_Property:

ValueDescription
NewvalueAny value appropriate to the specified control.
CoordsAn optional parameter (used for EditTable only) that specifies the coordinates inside the EditTable. coords has the format:

columnNumber :@fm: rowNumber

Returns

Values returned by both Get_Property and Set_Property:

ValueDescription
objectnameControl, in the current window, that has focus.
existingpropValue of the default property, when Set_Property was run.

Each control has a default property. The controls and properties are as follows.

Control Namedefault Property
CHECKBOXCheck
COMBOBOXText
EDITBOXTextVal
EDITLINEText
EDITTABLETEXT if both columnNumber and rowNumber are not 0.

ColDATA if rowNumber is 0.

ROWDATA if columnNumber is 0.

ARRAY if coords is not passed or if the rowNumber and columnNumber are 0.

LISTBOXText
RADIOBUTTONCheck
RADIOGROUPValue
TABCONTROLVALUE

Note: Use DEFPROP to set the values for database bound controls

  • No labels