The AccumBrowseGetField function retrieves the value of the specified field from the record the data browse cursor is currently referencing.
This function is a non-blocking function. It does not block the calling Cicode task.
The handle to a browse session previously returned by a AccumBrowseOpen call.
The name of the field that references the value to be returned. Supported fields are:
NAME, CLUSTER, PRIV, AREA, TRIGGER, VALUE, RUNNING, STARTS, TOTALISER
See Browse Function Field Reference for information about fields.
The value of the specified field as a string. An empty string may or may not be an indication that an error has been detected. The last error should be checked in this instance to determine if an error has actually occurred.
AccumBrowseClose, AccumBrowseFirst, AccumBrowseNext, AccumBrowseNumRecords, AccumBrowseOpen, AccumBrowsePrev
STRING fieldValue = "";
STRING fieldName = "TYPE";
INT errorCode = 0;
fieldValue = AccumBrowseGetField(iSession, sFieldName);
IF fieldValue <> "" THEN
// Successful case
// Function returned an error