LayoutNames()

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 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Simiral book on Amazon

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