Cicode Programming Reference > Cicode Function Categories > Display Functions Introduction > DspInfoValid

DspInfoValid

Checks if an object information block handle is valid. An object information block handle becomes invalid after it is destroyed, or if the user closes the page it is associated with. Use this function if background Cicode is using the object information block, and the operator closes the page.

Syntax

DspInfoValid(hInfo)

hInfo:

The object information block handle, as returned by DspInfoNew(). This handle identifies the table (or block) where all object data is stored.

Return Value

1 if the information block handle is valid, otherwise 0 (zero).

Related Functions

DspInfoNew, DspInfoField, DspInfoDestroy

Example

IF DspInfoValid(hInfo) THEN
EngValue=DspInfoField(hInfo,sTag,"Eng_Value");
END

See Also

Display Functions