User Guide
interface() 371
integerP()
Usage
expression.integerP
(numericExpression).integerP
integerP(expression)
Description
Function (Lingo only); indicates whether a specified expression can be evaluated to an integer
(
1 or TRUE) or not (0 or FALSE). P in integerP stands for predicate.
Parameters
expression
Required. The expression to test.
Example
This statement checks whether the number 3 can be evaluated to an integer and then displays 1
(
TRUE) in the Message window:
put(3).integerP
-- 1
The following statement checks whether the number 3 can be evaluated to an integer. Because 3
is surrounded by quotation marks, it cannot be evaluated to an integer, so 0
(FALSE) is displayed
in the Message window:
put("3").integerP
-- 0
This statement checks whether the numerical value of the string in field cast member Entry is an
integer and if it isn’t, displays an alert:
if field("Entry").value.integerP = FALSE then alert "Please enter an integer."
See also
floatP(), integer(), ilk(), objectP(), stringP(), symbolP()
interface()
Usage
xtra("XtraName").interface()
interface(xtra "XtraName")
Description
Function; returns a Return-delimited string that describes the Xtra and lists its methods. This
function replaces the now obsolete
mMessageList function.
Parameters
None.
Example
This statement displays the output from the function used in the QuickTime Asset Xtra in the
Message window:
put Xtra("QuickTimeSupport").interface()