|
|
|
DATE AsDate ()
|
Interprets the value as a date
Notes : Strings are converted with DATE (honouring the session date
format); numbers are interpreted as the day count the ABL
DATE (integer) conversion expects; other kinds yield the
unknown value (SCL-5647)
@return The date interpretation
*/
|
|
|
|
LOGICAL AsLogical ()
|
Interprets the value in a logical context
Notes : Numbers are true when non-zero; "true"/"yes" strings are
true; the unknown value yields the unknown value.
@return The logical interpretation
*/
|
|
|
|
DECIMAL AsNumber ()
|
Interprets the value as a number
Notes : Strings are converted with the period as the decimal point
(0 when not numeric, see ParseDecimal); logicals yield 1 / 0;
the unknown value yields the unknown value.
@return The numeric interpretation
*/
|
|
|
|
CHARACTER AsString ()
|
Interprets the value as a string
Notes :
@return The string interpretation
*/
|
|
|
|
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Lexer.PreproValue Bool (logical)
|
Creates a logical value
Notes :
@param plValue The logical value
@return The PreproValue instance
*/
|
|
|
|
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Lexer.PreproValue DateVal (date)
|
Creates a date value
Notes : Named DateVal because DATE is an ABL reserved keyword and may
not be used as a method name (SCL-5647)
@param pdaValue The date value
@return The PreproValue instance
*/
|
|
|
|
LOGICAL IsDate ()
|
Returns whether this value is a date
Notes :
@return Logical value indicating a date kind
*/
|
|
|
|
LOGICAL IsNumber ()
|
Returns whether this value is numeric
Notes :
@return Logical value indicating a numeric kind
*/
|
|
|
|
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Lexer.PreproValue Number (decimal)
|
Creates a numeric value
Notes :
@param pdeValue The numeric value
@return The PreproValue instance
*/
|
|
|
|
DECIMAL ParseDecimal (character)
|
Parses numeric text with the period as the decimal point,
independent of the session numeric format
Notes : ABL source literals - and the values the reference ProEval
evaluator handles (Float.parseFloat) - always use the
period; a plain DECIMAL conversion would misread "2.6" as
26 in a EUROPEAN-format session (SCL-5647)
@param pcValue The numeric text
@return The decimal value
*/
|
|
|
|
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Lexer.PreproValue Str (character)
|
Creates a string value
Notes :
@param pcValue The string value
@return The PreproValue instance
*/
|
|
|
|
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Lexer.PreproValue Unknown ()
|
Creates the unknown value
Notes :
@return The PreproValue instance
*/
|