Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Renames the file path in a container value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Container 3.0 Yes Yes Yes Yes Yes
MBS( "Container.Rename"; ContainerField; name )   More


Parameter Description Example value
ContainerField The container field or value to inspect.
name New file name or new path list. "test.jpg"


Returns modified container value or error.


Renames the file path in a container value.
Does only work for normal containers, not with referenced files.


Renames an image to have a new file extension.

$oldname = MBS( "Container.GetName"; $container )
$newname = substitute($oldname; ".jpg"; ".png")
$newcontainer = MBS( "Container.Rename"; $container; $newname )

Rename external saved container:

#rename field container into variable
Set Variable [$newContainer; Value:MBS( "Container.Rename"; test::file; "test.txt" )]
#Put new container in field
Set Field [test::file; $newContainer]
#write changes to disk
Commit Records/Requests []

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 21st October 2017

Container.Remove   -   Container.RenameStream

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins