Category: Design
Syntax: LayoutNames ( fileName ) |
Parameters:
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
Description:
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)) )
Examples:
Function | Results |
---|---|
LayoutNames (Get (FileName)) | Might return a list of values that looks like this: |
Contact_List | |
Contact_Detail | |
Invoice_List | |
Invoice_Detail |
: 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