Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    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 } )   More


Parameter Description Example value
ContainerField The container field or value to inspect. 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")]

Query text of XML file in a container:

Set Variable [ $text ; Value: MBS( "Container.GetText"; test::test; "FILE"; "UTF-8") ]

See also

Blog Entries

Created 24th March 2017, last changed 23th February 2018

Container.GetSize   -   Container.GetTotalSize

Feedback: Report problem or ask question.

MBS Xojo Plugins