Xbasic

PROP_VALID Function

Syntax

Result_Flag as L = prop_valid(P dot_variable ,C property [,L recursive ])

Arguments

dot_variable

The name of a dot variable.

property

The name of an element of the dot variable.

recursive

Optional. Default .T. = Looks inside of dot variables inside this dot variable. .F. = Does not look inside of dot variables inside this dot variable.

Description

Tests whether a dot variable has a specified property

Discussion

PROP_VALID() determines whether Property exists within Dot_Variable.

Example

dim dt as P
dim dt.a as C
dim dt.b as N
prop_valid(dt, "b", .T.) ?.T.
prop_valid(dt, "c", .T.) ? .F.

See Also