Warning: This function is maintained for backward compatibility. It is strongly recommended to use the
File data type, its properties, and methods instead of this function.
Reads a numeric type field of the current line (read by DFRnext).
DFRGNum(Num)
Where:
Num
It can be an attribute or variable of Numeric type. The read value will be stored here.
Type Returned:
Numeric
Objects: Procedure, Transaction, Web Panel, Data Provider
Generators:.NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3)
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. |
Delimited ASCII files functions