MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 371

Director scripting reference
Table of Contents

Advertisement

integerP()
Usage
expression.integerP
(numericExpression).integerP
integerP(expression)
Description
Function (Lingo only); indicates whether a specified expression can be evaluated to an integer
(
) or not (
1 or TRUE
Parameters
Required. The expression to test.
expression
Example
This statement checks whether the number 3 can be evaluated to an integer and then displays 1
(
) in the Message window:
TRUE
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
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(),
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
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()
). P in
0 or FALSE
integerP
mMessageList
stands for predicate.
symbolP()
function.
) is displayed
(FALSE
interface()
371

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents