Go to Contents
Previous
Page
Next
Page
Contents > Functions reference (alphabetical list) > Design functions > FieldBounds function

FieldBounds function
Format

FieldBounds(fileName;layoutName;fieldName)
Parameters
fileName - the name of an open database file (local or remote).
layoutName - the name of a layout in the specified database file.
fieldName - the name of a field on the specified layout.
Important   See Design functions for information about literal text parameters.
Data type returned
text
Description
Returns in a non-repeating text field the location in pixels of each side of fieldName and its rotation in degrees on layoutName in the fileName file. The location is measured from the top left corner of the layout (regardless of printer margins) and is specified in this order: position of left field boundary, position of top field boundary, position of right field boundary, position of bottom field boundary, degree of rotation (measured in a counter-clockwise direction; 0 degrees for unrotated).
Note   Your layout begins where your margins end. Because field boundaries are measured from the left side and top of the layout, boundaries returned by FieldBounds never change unless you move or re-size a field.
Example
FieldBounds("Customers";"Layout #1";"Field") returns 36 48 295 65 0 in the example below. Notice that all parameters are enclosed in quotation marks.

Field boundary example
Related topics
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas

Contents > Functions reference (alphabetical list) > Design functions > FieldBounds function
Previous
Page
Next
Page