Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  


Returns the text value of the container data.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Container 7.2 Yes Yes Yes Yes Yes

MBS( "Container.GetText"; ContainerField; Name or Index { ; Encoding } )


Parameter Description Example value
ContainerField the container field to examine MyTable::MyContainerField
Name or Index either the name of the Type or it's index 0
Encoding Optional
The text encoding for result.
Default is native.
Possible encoding names: ANSI, Arabic-Mac, Arabic-Win, Baltic-Win, CentralEurope-Mac, ChineseSimp-Mac, ChineseSimp-Win, ChineseTrad-Mac, ChineseTrad-Win, Cyrillic-Mac, Cyrillic-Win, EasternEurope-Win, Greek-Mac, Greek-Win, Hebrew-Mac, Hebrew-Win, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-15, Korean-Johab, Korean-Mac, Korean-Win, Latin1, Mac, Native, ShiftJIS-Mac, ShiftJIS-Win, Turkish-Mac, Turkish-Win, UTF-8, DOS or Windows. Pass native to use the native encoding of the current platform.


Returns text or error.


Returns the text value of the container data.
You must tell the plug-in which of the types in the container field you want to use. You can use either it's name (JPEG, TIFF, PNGf etc) or it's index. The index is from 0 to the count of types -1 You can use Container.GetCount to return the count of types in the container.
You can pass index zero and get data form references file in case container is a file reference.


Show main item in container:

Show Custom Dialog ["Main item"; MBS("Container.GetText"; test::Test; "MAIN")]

See also

Container.GetSize   -   Container.GetTotalSize

Feedback: Report problem or ask question.

MBS Xojo Plugins