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()
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...