GetRowStatus
function GetRowStatus: Integer;
Example
procedure ScriptEvent(var Value: Variant);
begin
if Action <> nil then
if Action.Log <> nil then
Value := Action.Log.GetRowStatus
else
Value := -1
else
Value := -1;
end;
Usage
GetRowStatus returns the current temporary row-status ordinal and immediately resets only that row mirror to OK.
Additional Technical Info
GetRowStatus consumes the temporary status accumulated for a row/line.
The method returns Ord(RowStatusType) and then directly resets RowStatusType to flsOK. Overall StatusType, HeaderStatusType, Boolean Status and log content remain unchanged.
The row mirror receives a new overall status only when StatusType successfully escalates to a greater ordinal, and it can be assigned independently by script. The RowStatusType getter does not reset it.
Quirks and concurrency
- This is read-and-reset state: a second call normally returns OK.
- Header and row mirrors are independent; consuming one does not consume the other.
- The returned Integer is the current
TvxLogStatusTypeordinal. - Concurrent consumers are unsafe because one caller can reset the value before another reads it.
Related entries
RowStatusType— non-destructive mirror.GetHeaderStatus— independent header mirror.StatusType— persistent overall status.