Top Method Summary
Options Name Purpose
CHARACTER ControlValueToAblLiteral (Control) Returns the current value of an editor control as an ABL expression literal
CHARACTER ControlValueToAblLiteral (Control, character) Returns the current value of an editor control as an ABL expression literal
CHARACTER DotNetValueToAblLiteral (Object) Converts a .NET value into an ABL expression literal
CHARACTER DotNetValueToAblLiteral (Object, character) Converts a .NET value into an ABL expression literal


Method Detail
Top

CHARACTER ControlValueToAblLiteral (Control)

Purpose: Returns the current value of an editor control as an ABL
expression literal
Notes: Uses the Checked property for check editors and the Value property
(resolved through reflection) for other editor controls, falling
back to the Text property. A System.DateTime value is returned as
a DATETIME literal

Parameters:
poControl System.Windows.Forms.Control
The reference to the editor control
Returns CHARACTER
The ABL expression literal for the control value
Top

CHARACTER ControlValueToAblLiteral (Control, character)

Purpose: Returns the current value of an editor control as an ABL
expression literal
Notes: Uses the Checked property for check editors and the Value property
(resolved through reflection) for other editor controls, falling
back to the Text property. The ABL data type of the bound field
determines the literal of a System.DateTime value (SCL-6186)

Parameters:
poControl System.Windows.Forms.Control
The reference to the editor control
pcDataType CHARACTER
The ABL data type of the bound field, empty when not known
Returns CHARACTER
The ABL expression literal for the control value
Top

CHARACTER DotNetValueToAblLiteral (Object)

Purpose: Converts a .NET value into an ABL expression literal
Notes: Boolean values are returned as logical literals, numeric values
unquoted, all other values are quoted. A System.DateTime value is
returned as a DATETIME literal. The unknown value is returned as
the unquoted ? literal

Parameters:
poValue System.Object
The reference to the .NET value
Returns CHARACTER
The ABL expression literal for the value
Top

CHARACTER DotNetValueToAblLiteral (Object, character)

Purpose: Converts a .NET value into an ABL expression literal
Notes: Boolean values are returned as logical literals, numeric values
unquoted in the invariant culture, all other values are quoted.
A System.DateTime value is returned as a DATE, DATETIME-TZ or
DATETIME literal depending on pcDataType, independent of the
session date format (SCL-6186) - ABL does not compare a DATE with
a DATETIME value, so the literal has to match the type of the
field. The unknown value and System.DBNull are returned as the
typed unknown literal of pcDataType, the unquoted ? literal when
the data type is not known (SCL-6247)

Parameters:
poValue System.Object
The reference to the .NET value
pcDataType CHARACTER
The ABL data type of the bound field, empty when not known
Returns CHARACTER
The ABL expression literal for the value


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2026 08:20:38