Books

A collection of books.

Methods

Bookadd (fullName:
File[, withProperties:
Object])
Creates a new book.

Parameter Type Description
fullName File The full path name of the new book file, including the book file extension ‘.indb’.
withProperties Object Initial values for properties of the new Book (Optional)

BookanyItem ()
Returns any Book in the collection.

number count ()
Displays the number of elements in the Book.

Array of BookeveryItem ()
Returns every Book in the collection.

BookfirstItem ()
Returns the first Book in the collection.

Bookitem (index:
any)
Returns the Book with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

BookitemByName (name:
string)
Returns the Book with the specified name.

Parameter Type Description
name string The name.

Array of BookitemByRange (from:
any, to:
any)
Returns the Books within the specified range.

Parameter Type Description
from Book
Long Integer
String
The Book, index, or name at the beginning of the range. Can accept: Book, Long Integer or String.
to Book
Long Integer
String
The Book, index, or name at the end of the range. Can accept: Book, Long Integer or String.

BooklastItem ()
Returns the last Book in the collection.

BookmiddleItem ()
Returns the middle Book in the collection.

BooknextItem (obj:
Book)
Returns the Book whose index follows the specified Book in the collection.

Parameter Type Description
obj Book The Book whose index comes before the desired Book.

BookpreviousItem (obj:
Book)
Returns the Book with the index previous to the specified index.

Parameter Type Description
obj Book The index of the Book that follows the desired Book.

string toSource ()
Generates a string which, if executed, will return the Book.

Element of:

Application.books

Leave a Comment

Previous post:

Next post: