Click or drag to resize

Control.TextValue Property (Typed)

X#
A string representing the value held in the control.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL PROPERTY TextValue AS STRING GET SET 
Request Example View Source

Property Value

Type: String
A string representing the value held in the control.
Remarks
For example, in a standard edit control, the value can be "Jones" or "$14,683.00". In a check box, the value can be "TRUE" or "FALSE". For push buttons, Control:TextValue is set to NULL_STRING. In a list box or combo box, Control:TextValue holds the display value text. In a radio button group, Control:TextValue holds the caption text of the radio button that is currently selected. Note that the string is formatted according to the picture clause held in the field specification of the control; in turn, controls linked to a data server inherit the field specification - and hence picture clause - from the field of the server.
Examples
The following examples demonstrate the use of the Control:TextValue property:
X#
1// Prints "C" for character string
2?ValType(oDCAmountControl:TextValue)
3// Access the control (string value)
4cAmount := oDCAmountControl:TextValue
5// Assign "5" to the control
6oDCAmountControl:TextValue := "5"
See Also