GetAuditFindingCount
Diagnostics
Description
Returns how many findings the most recent audit produced
Syntax
Delphi
Function GetAuditFindingCount: Integer;Return values
| N | Number of cached findings, 0 before the first audit call |
|---|
Remarks
Findings remain valid until the next Audit* call. Each finding exposes its severity (1 OK, 2 WARN, 3 ERROR, 4 INFO), the affected item such as an object number, and a human-readable detail.
Example
for I:= 0 to PDF.GetAuditFindingCount- 1 do if PDF.GetAuditFindingSeverity(I)= 3 then RaiseError(PDF.GetAuditFindingDetail(I));