IsValid()

Category: Logical

Syntax: IsValid ( expression )

Parameters:

expressionTypically a field name, but can be any valid FileMaker Pro calculation formula.

Data type returned: Number

Description:

Returns either a 1 (true) or a 0 (False), depending on whether the field or expression returns valid data.

IsValid returns a 0 if there is a data type mismatch (for example, text in a date field) or if FileMaker cannot locate the table or field that is referenced.

Otherwise it returns 1, indicating that the data is valid.

Examples:

Function

Results

IsValid (myField)

Returns 1 (true) when myField is present and contains data appropriate to its defined data type.

IsValid (Contacts::Name)

Returns 0 (False) if the current record has no related records in the Contacts table, or if the fields in the records in question all contain invalid data.

Категории