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:
Value | Description |
---|---|
Newvalue | Any value appropriate to the specified control. |
Coords | An 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:
Value | Description |
---|---|
objectname | Control, in the current window, that has focus. |
existingprop | Value of the default property, when Set_Property was run. |
Each control has a default property. The controls and properties are as follows.
Control Name | default Property |
---|---|
CHECKBOX | Check |
COMBOBOX | Text |
EDITBOX | TextVal |
EDITLINE | Text |
EDITTABLE | TEXT 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. |
LISTBOX | Text |
RADIOBUTTON | Check |
RADIOGROUP | Value |
TABCONTROL | VALUE |
Note: Use DEFPROP to set the values for database bound controls