Lingo Dictionary > O-R > pictureP() |  |

pictureP()

Syntax

    pictureP(pictureValue)

Description

Function; reports whether the state of the `picture` member property for the specified cast member is `TRUE` (1) or `FALSE` (0).

Because `pictureP` doesn't directly check whether a picture is associated with a cast member, you must test for a picture by checking the cast member's `picture` member property.

Example

The first statement assigns the value of the `picture` member property for the cast member Shrine, which is a bitmap, to the variable `pictureValue`. The second statement checks whether Shrine is a picture by checking the value assigned to `pictureValue`.

    set pictureValue to the picture of member "Shrine"
    put pictureP(pictureValue)

The result is 1, which is the numerical equivalent of `TRUE`.