Prototype
subroutine EcsGetFieldCount(integer:FieldCount)
Description
Field-oriented. Copies the number of fields on the current screen into an integer variable.
Parameters
FieldCount |
Output |
A reference to the integer that will receive the count of fields within the current screen. |
Return Value
ECS_E_NOTINIT |
Not initialized - command was ignored |
ECS_E_NOTCONN |
Not connected to an active session |
ECS_E_NOFLDS |
Screen contains no fields |
ECS_E_ERRORFREE |
No errors were generated |
Example
###*******************************
### Action to get the field count
###*******************************
action GetFieldCount is
call EcsGetFieldCount ( Indicator_IV )
copy errorlevel to ErrorLevel_IV
copy "EcsGetFieldCount" to Call_SV
if ( ErrorLevel_IV = ECS_E_ERRORFREE ) then
copy "Field count is " Indicator_IV to Message_SV
action DisplayMessage
else
action DisplayError
end if