MMQuery_GetLayoutIDs
- Description
This function returns either the ID of a specific Layout or a list of "LayoutName=LayoutID" pairs for all Layouts in the current Database File. If you specify a Layout Name in the first parameter, MMQuery will return the Layout ID of that specific Layout. If you do not specify this parameter, MMQuery will return a list of "LayoutName=LayoutID" pairs for all the Layouts in the current Database File. By default, MMQuery will check to make sure the Layout Name you specify exists before getting the Layout IDs. If you already know for sure that the Layout name exists, you can pass True as the second parameter.
- Return Type
- Text or Number
- Format
- MMQuery_GetLayoutIDs ( LayoutName ; SkipLayoutNameCheck )
- Optional Parameters
- LayoutName
If you specify this parameter, MMQuery will return the ID of the Layout you specify. Otherwise, MMQuery will return all the IDs of all the Layouts.
- SkipLayoutNameCheck
If True, MMQuery will not check to make sure the Layout Name you specify actually exists.
- LayoutName
- Related Items
- MMQuery_GetLayoutFieldNames, MMQuery_GetLayoutNames, MMQuery_LayoutExists
- Examples
Example 1
Code:
MMQuery_GetLayoutIDsResult:
Returns something like:<br/>
ZLayout=1<br/>
YLayout=2Example 2
Code:
MMQuery_GetLayoutIDs("YLayout")Result:
Returns 2 if the Layout ID for the "YLayout" Layout in the current Database File is 2.