BBjForm::getDefaultUnits

Description

In BBj 4.0 and higher, this method gets the default units for new pages.

Syntax

Return Value

Method

double

getDefaultUnits()

Parameters

None.

Return Value

Returns the default conversion factor in points per unit. Constants are supplied for common units.

Remarks

None.

Example

rem 'Create a new page

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 myForm! = myBBjPrinter!.getForm(1)

rem 'Get a new page
let myPage1! = myForm!.createPage()

rem 'Get a new page using MM units.
let units = myForm!.getDefaultUnits()
release

Example - Purchase Requisition

See Also

BBjAPI

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

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