Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetIgnoreList

Returns the current ignore list (populated by Ignore, cleared by IgnoreReset).

In DWS, returns TArray<Cardinal> directly. The DWS overload also supports the legacy TStringList variant (IDs in hex format).

In PascalScript, only the TStringList variant is available. The list must be created before calling and freed after use. IDs are in hex format.

In Python, returns list[int].

Возвращает текущий список игнорирования (заполняется через Ignore, очищается через IgnoreReset).

DWS

function GetIgnoreList: TArray<Cardinal>;

DWS overload (legacy):

function GetIgnoreList(var UserList: TStringList): Boolean;

Pascal Script

function GetIgnoreList(var UserList: TStringList): Boolean;

Python

def GetIgnoreList() -> list[int]: ...

Pascal Example

DWS:

var
  IgnoreList: TArray<Cardinal>;
  i: Integer;
begin
  IgnoreList := GetIgnoreList;
  for i := 0 to Length(IgnoreList) - 1 do
    AddToSystemJournal(IntToHex(IgnoreList[i], 8));
end.

Pascal Script:

var
  UserList: TStringList;
  i: Integer;
begin
  UserList := TStringList.Create;
  try
    if GetIgnoreList(UserList) then
      for i := 0 to UserList.Count - 1 do
        AddToSystemJournal(UserList[i]);
  finally
    if Assigned(UserList) then
      UserList.Free;
  end;
end.

Python Example

for ignored_id in GetIgnoreList():
    AddToSystemJournal(f'{ignored_id:08X}')

See Also

Ignore, IgnoreOff, IgnoreReset