.NODE

FieldBounds()

Category: Design

Syntax: FieldBounds ( fileName; layoutName; fieldName )

Parameters:

fileNameName of the file where the field resides.

layoutNameName of the layout where the field resides.

fieldNameName of the field open.

Data type returned: Text

Description:

Returns the physical position and rotation of a field that is described by the parameters. Note that the parameters are text and must either be references to fields or enclosed in quotation marks. Results are returned as a space-delimited text string in the form of "Left Top Right Bottom Rotation." The first four of these values represent the distance in pixels from either the left margin of the layout (in the case of Left and Right) or the top margin (in the case of Top and Right). The Rotation value will be 0, 90, 180, or 270, depending on the field's orientation on the layout.

The values returned are delimited by spaces; the MiddleWords() function can easily be used to parse them.

Be aware that changing the name of a file, layout, or field may cause literal references to them to be broken in functions that use FieldBounds.

The field name that is passed to FieldBounds() must be the name from Define Database (not the field label); if a field appears on layout more than once, the one that is furthest in the rear in the layering order will be used.

Related fields must be referenced by RelationshipName::FieldName or FileName::FieldName.

Examples:

Function

Results

FieldBounds ( myFile; myLayout; myField )

Might return 444 84 697 98 0.


: FileMaker Specifications

FileMaker 8 Product Line

Specifications and Storage Limits

Field Types and Import/Export Formats

: Calculation Functions

Working with Calculations Primer

Calculation Signatures

Calculation Functions

: Custom Functions

Custom Functions Primer

Useful Custom Functions

: Script Steps

Scripting Primer

Script Step Reference

: Quick Reference

FileMaker Error Codes

FileMaker Keyboard Shortcuts

FileMaker Network Ports

FileMaker Server Command Line Reference

FileMaker XML Reference

: Other Resources

Where to Go for More Information

show all menu





FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net