User Guide
642
string()
Syntax
string(expression)
Description
Function; converts an integer, floating-point number, object reference, list, symbol, or other
nonstring expression to a string.
Examples
This statement adds 2.0 + 2.5 and inserts the results in the field cast member Total:
member("total").text = string(2.0 + 2.5)
This statement converts the symbol #red to a string and inserts it in the field cast member Color:
member("Color").text = string(#red)
See also
value(), stringP(), float(), integer(), symbol()
stringP()
Syntax
stringP(expression)
Description
Function; determines whether an expression is a string (TRUE) or not (FALSE).
The P in
stringP stands for predicate.
Examples
This statement checks whether 3 is a string:
put stringP("3")
The result is 1, which is the numeric equivalent of TRUE.
This statement checks whether the floating-point number 3.0 is a string:
put stringP(3.0)
Because 3.0 is a floating-point number and not a string, the result is 0, which is the numeric
equivalent of
FALSE.
See also
floatP(), ilk(), integerP(), objectP(), symbolP()
strokeColor
Syntax
member(whichCastMember).strokeColor
Description
Vector shape cast member property; indicates the color in RGB of the shape’s framing stroke.
To see an example of
strokeColor used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.