Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Container.GetText
Returns the text value of the container data.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Container | 7.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Container.GetText"; Container; Name or Index { ; Encoding } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Container | The container field or value to inspect. | MyTable::MyContainerField | |
Name or Index | either the name of the Type or it's index | 0 | |
Encoding | The text encoding for result. Default is native. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
UTF8 | Optional |
Result
Returns text or error.
Description
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.
See also Text.ReadTextFromContainer for reading text from main item in container.
Examples
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
- Archive.ExtractFile
- Container.GetCount
- Container.GetName
- Container.GetSize
- Container.GetType
- Container.GetTypes
- Container.GetWidth
- RegEx.Extract
- Text.ReadTextFile
- Text.ReadTextFromContainer
Release notes
- Version 7.2
- Added Container.GetText function.
Example Databases
Blog Entries
This function checks for a license.
Created 24th March 2017, last changed 15th March 2021