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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

Container.GetTypeSize

Returns the size of the indicated object type in container field.

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

MBS( "Container.GetTypeSize"; Container; Type )

Parameters

Parameter Description Example value
Container The container field or value to inspect. $container
Type The type code for the type to check. e.g. "JPEG" for a jpeg image. "JPEG"

Description

Returns the size of the indicated object type in container field.
For referenced files, this function will just return the size of the referenced file independent of the type.

Examples

Get size of PNG image

MBS( "Container.GetTypeSize" ; ContainerField; "PNGf" )

Get the size of a JPEG image

MBS( "Container.GetTypeSize" ; ContainerField; "JPEG" )

Get the size of a TIFF image

MBS( "Container.GetTypeSize" ; ContainerField; "TIFF" )

See also

Example Databases


Container.GetType   -   Container.GetTypes

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins