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

FM.DataType

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 )

Parameters

Parameter Description Example value
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) )


FM.CurrentThreadID   -   FM.DataViewerContent

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins