Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Container.GetText
Returns the text value of the container data.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Container | 7.2 | Yes | Yes | Yes | Yes | Yes |
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.
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
- Container.GetBase64
- Container.GetCount
- Container.GetHeight
- Container.GetHex
- Container.GetName
- Container.GetSize
- Container.GetType
- Container.GetTypes
- Container.GetWidth
- Text.ReadTextFile
Blog Entries
Release notes
- Version 7.2
- Added Container.GetText function.
Created 24th March 2017, last changed 20th May 2019
Container.GetSize - Container.GetTotalSize
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins