LayoutNames()

 <  Day Day Up  >  

LayoutNames()

Category: Design

Syntax: LayoutNames (fileName)

Parameters: fileName ”a string or text expression that represents the name of an open file. It can include a file extension, but doesn't need one.

Description: Returns a carriage return “delimited list of layout names for the specified file.

Examples:

 

 LayoutNames (Get (FileName)) 

Might return a list of values that looks like this:

 

 Contact_List Contact_Detail Invoice_List Invoice_Detail 

Comments:

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 layout's 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))) 

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

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