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

BookClearText

Clears the entire content of the currently open book.

The book must be opened beforehand (e.g. via UseObject or UseType). If no book is open, the method logs a warning and does nothing. If the book is read-only, the method also logs a warning and does nothing.

Очищает всё содержимое текущей открытой книги.

Книга должна быть предварительно открыта (например, через UseObject или UseType). Если книга не открыта, метод выводит предупреждение в журнал и ничего не делает. Если книга доступна только для чтения, метод также выводит предупреждение и ничего не делает.

Pascal

procedure BookClearText;

Python

def BookClearText() -> None: ...

Pascal Example

begin
  UseObject(FindItem);
  Wait(1000);  // wait for book to open
  BookClearText;
  BookSetText('New content for the book.');
end.

Python Example

UseObject(FindItem())
Wait(1000)  # wait for book to open
BookClearText()
BookSetText('New content for the book.')

See Also

BookSetText, BookSetPageText, BookSetHeader, BookGetPageText