Category: Design

Syntax: LayoutNames ( fileName )


fileNameA string or text expression that represents the name of an open file. It can include a file extension, but doesn need one.

Data type returned: Text


Returns a carriage returndelimited list of layout names for the specified file.

As with the LayoutIDs() function, the order of the layout names is determined by the current order of the layouts, not their creation order.

If you wanted to find out a particular layouts ID (say, the Contact_Detail layout), you can use the LayoutNames() and LayoutIDs() functions together, as follows:

 Let ([
 LNs = LayoutNames (Get(FileName));
 LIs = LayoutIDs (Get(FileName));
 pos = Position (LNs; "Contact_Detail"; 1; 1);
 num = PatternCount (Left(LNs, pos); "¶") + 1 ] ;
 GetAsNumber (MiddleValues (LIs; num; 1))




LayoutNames (Get (FileName))

Might return a list of values that looks like this:









: 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

FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352 © 2008-2020.
If you may any questions please contact us: