Home Reference Expression functions 

dophasfield expression function

Returns 1 if a specified DOP field exists.

Usage

dophasfield(dop, objectSpec, subDataName, recordType, recordNum, fieldName)

This expression can be used before the dopfield or dopfields expressions to ensure that any returned empty strings or zero values are in fact true values as opposed to default values being returned for an invalid field name.

Examples

dophasfield("/obj/dopnet1", "obj0", "Position", "Options", 0, "ty")

Returns 1, because Position data has an option with the name ty.

dopfield("/obj/dopnet1", "obj0", "Position", "Options", 0, "notafield")

Returns 0 because notafield is not a field name in the Position data options.

Replaced by