Official Content

Reads a numeric type field of the current line (read by dfrnext).

Syntax

DFRGNum(Num)

Where:

Num
    It can be an attribute or variable of Numeric type. The read value will be stored here.

Type Returned:
Numeric

Scope

Objects: Procedure, Transaction, Web PanelData Provider
Generators:.NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3)

Values

This function may return some of the following values:

Values Result Definition
0 Successful operation The field has been read
-1 Wrong sequence It occurs when this function is called before calling the dfrnext function, or when the last call to dfrnext returned a value other than zero (error). If the trace is enabled, you will see the ADF0004 or ADF0006 message.
-5 Wrong format The number in the field does not have the correct format. This is mostly because the field you try to read is of a different type (character, date, etc.). If the trace is enabled, you will see the ADF0008 message.

 

See Also

Delimited ASCII files functions










Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant