MMQuery

Query your databases without relationships.

<- Back to MMQuery function list

MMQuery_GetLayoutFieldNames

Description

This function returns a list of Field Names from a Layout. The first parameter is the Name of the Layout to return the Field Names from. If you do not specify this parameter, MMQuery will use Get(LayoutName) to get the current Layout to return the Field Names from. By default, MMQuery will check to make sure the Layout Name you specify exists before getting the Field Names. If you already know for sure that the Layout Name exists, you can pass True as the second parameter.

Return Type
Text
Format
MMQuery_GetLayoutFieldNames ( Layout Name ; SkipLayoutNameCheck )
Optional Parameters
  • Layout Name

    The Name of the Layout that contains the Fields. You can specify "" here to have MMQuery use the current Layout.

  • SkipLayoutNameCheck

    If True, MMQuery will not check to make sure the Layout Name you specify actually exists.

Related Items
MMQuery_GetLayoutIDs, MMQuery_GetLayoutNames, MMQuery_LayoutExists
Example

Code:

MMQuery_GetLayoutFieldNames("MyLayout")

Result:

Returns something like:<br/>
AField<br/>
BField<br/>
Related::DField