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). Если книга не открыта, метод выводит предупреждение в журнал и ничего не делает. Если книга доступна только для чтения, метод также выводит предупреждение и ничего не делает.
procedure BookClearText;
def BookClearText() -> None: ...
begin
UseObject(FindItem);
Wait(1000); // wait for book to open
BookClearText;
BookSetText('New content for the book.');
end.
UseObject(FindItem())
Wait(1000) # wait for book to open
BookClearText()
BookSetText('New content for the book.')
BookSetText, BookSetPageText, BookSetHeader, BookGetPageText