AnsweredAssumed Answered

How to know a variable's type?

Question asked by disabled_morkus on Feb 23, 2016
Latest reply on Feb 23, 2016 by user19752

Is there a FMP function that lets you know the variable's type?

 

For example if I had something like:

 

VarType(Timestamp("11-11-2015 11:11:11")

 

It would return "Timestamp".

 

In an object oriented environment, you might have something like if myvar.instanceOf("Timestamp") ....

 

----

 

Something like being able to know what the type of a variable is probably exists already, but I can't find it. Knowing a variable's (or function return) type would be very useful so you could better know when certain FileMaker functions would apply.

 

Thanks,

 

- m

Outcomes