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: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  


Returns data type of argument.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM 6.1 Yes Yes Yes Yes Yes

MBS( "FM.DataType"; Value )


Parameter Description Example value
Value The value to check. $test


Returns type or error.


Returns data type of argument.
The type can be container, boolean, date, empty, number, text, time, timestamp or unknown.
Empty variables show as text.
You should never see unknown. Empty is really rare as it would be a value without anything, not even empty text.


Checks variable data type:

MBS( "FM.DataType"; "Hello" )

Checks data type for timestamp:

MBS( "FM.DataType"; get(CurrentTimeStamp) )

FM.CurrentThreadID   -   FM.DataViewerContent

Feedback: Report problem or ask question.

MBS Xojo blog