expressiontype(
FORMULA
)

The expressiontype( function determines what kind of data is generated by an expression: text, number, etc.


Parameters

This function has one parameter:

formula – is the formula you want to get information about.


Description

The expressiontype( function returns a number from the following table:

ValueData Type
0Text
5Floating Point Number
6Integer
11Binary Data
-1Error

Here are some simple examples:

expressiontype("hello world") ☞ 0
expressiontype(4/3) ☞ 5
expressiontype(6) ☞ 6
expressiontype(byte(6)) ☞ 11
expressiontype(sqr(6,7)) ☞ -1

To see the expressiontype( function in action in a real application, look at the custom functions perlconstant(, rubyconstant(, pythonconstant(, phpconstant( and applescriptconstant(.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now returns -1 if expression would generate an error.