Was this helpful?
Inquire_4gl
Get record or array information
Syntax
exec 4gl inquire_4gl(variable[:ind] = 4gl_constant
  [(array)])
variable
Specifies a 3GL variable
array
Specifies the handle of the array
4gl_constant
Specifies a constant containing the information you are seeking from 4GL about the record or array.
The following table of 4GL_constants describes the values that can be used in place of 4gl_constant in the syntax.
Name
Type
Meaning
allrows
integer
The total number of rows in the specified array, including deleted rows
This is similar to the 4GL procedure
ArrayAllRows( ).
firstrow
integer
The index of the first (lowest-numbered) deleted row
This is similar to the 4GL procedure
ArrayFirstRow( ).
lastrow
integer
The number of non-deleted rows in the specified array
This is similar to the 4GL procedure
ArrayLastRow( ).
IsArray
integer
Returns 1 if array, 0 if not
RecordTypename
character
For a record, the name of the record type. For an array, this is the name of the row type.
errorno
integer
The number of the error for the previous operation, 0 if OK
errortext
character
The text associated with the error for the previous operation
ind
Specifies a null indicator variable
Description
The inquire_4gl statement gets information about a record or array. The inquire_4gl statement can return:
The name of the object's record type (recordtype name)
Whether the named structure is an array
Error status from the previous operation
Error text from the previous operation
Information about the number of rows in the array
Last modified date: 08/28/2024