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.GetCount
Counts the number of types in a container field.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Container | 1.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Container | The container field or variable containing container value. |
Description
Counts the number of types in a container field.A container contains several data parts, each with an unique type.
This returns the number of types in a container.
Examples
Export all streams in container to individual files:
Set Variable [$container; Value:Test::Image]
#where to save
Set Variable [$DesktopFolder; Value:MBS("Folders.UserDesktop")]
#loop over streams in container
Set Variable [$count; Value:MBS( "Container.GetCount"; $container )]
Set Variable [$index; Value:0]
Loop
#query the type of stream with given index
Set Variable [$type; Value:MBS( "Container.GetType"; $container; $index )]
#write it to a file
Set Variable [$path; Value:$DesktopFolder & "/" & $type]
Set Variable [$r; Value:MBS( "Container.Export"; $container; $index; $path )]
#next
Set Variable [$index; Value:$index + 1]
Exit Loop If [$count = $index]
End Loop
See also
- Container.Export
- Container.GetBase64
- Container.GetHeight
- Container.GetHex
- Container.GetName
- Container.GetSize
- Container.GetText
- Container.GetType
- Container.GetTypes
- Container.GetWidth
Example Databases
Created 18th August 2014, last changed 6th November 2018
Container.GetBase64 - Container.GetDataURL
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins