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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

FM.DataType

Returns data type of argument.

Component Version macOS Windows Linux Server iOS SDK
FM 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "FM.DataType"; Value )   More

Parameters

Parameter Description Example
Value The value to check. $test

Result

Returns type or error.

Description

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.

Examples

Checks variable data type:

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

Checks data type for timestamp:

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

See also

Blog Entries

Created 9th February 2016, last changed 9th February 2016


FM.CurrentThreadID - FM.DataViewerContent

Feedback: Report problem or ask question.