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.Remove

Removes a stream from container value.

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

MBS( "Container.Remove"; ContainerField; Type )

Parameters

Parameter Description Example value
ContainerField The container field or value to inspect.
Type The type code of the stream to remove. Can be "PDF ", "JPEG" or one of the other usual types. "JPEG"

Result

Returns modified container value or error.

Description

Removes a stream from container value.
This function can be used to remove the JPEG preview from an image.
Or if you have a container with PDF and preview, you could remove the PDF to just get the preview image.
Use Container.GetTypes to learn what types are inside a container.

Examples

Renames an image to have a new file extension.

$jpegOnly = MBS( "Container.Remove"; $PDFContainer; "JPEG" )

Remove PDF from container value:

/* PDF produced with DynaPDF Pro will have Preview image. Removing PDF will reveal the preview: */
MBS( "Container.Remove"; FinalPDF; "PDF " )

See also

Example Databases


Container.ReadFile   -   Container.Rename

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins