BBjFormElement::add

Description

In BBj 4.0 and higher, this method adds a form element as a child to this form element.

Syntax

Return Value

Method

void

add(BBjFormElement object)

Parameters

Variable

Description

object

Specifies the form element to add as a child.

Return Value

None.

Remarks

Child form elements are drawn after the parent object is drawn.

Example

rem 'Add BBjFormElement to this BBjFormElement

rem 'Obtain the instance to the BBjAPI object
myAPI! = BBjAPI()

rem 'Obtain an instance of a default BBjPrinter object
let myBBjPrinter! = myAPI!.getBBjPrinter(0)

rem 'Get BBjForm for the selected printer
let myBBjForm! = myBBjPrinter!.getForm(1)

rem 'Get a new page
let myBBjFormPage! = myBBjForm!.createPage()

rem 'Get a new paragraph
let para1! = myBBjFormPage!.newParagraph()

rem 'Get another new paragraph
let para2! = myBBjFormPage!.newParagraph()

rem 'Add BBjFormElement to this BBjFormElement
para1!.add(para2!)
release

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.