IsGadget()

Syntax

Result = IsGadget(#Gadget)
Description
Tests if the given gadget number is a valid and correctly initialized gadget.

Parameters

#Gadget The gadget to use.

Return value

Returns nonzero if the input is a valid gadget and zero otherwise.

Remarks

This function is bulletproof and can be used with any value. This is the correct way to ensure a gadget is ready to use.

See Also

FreeGadget()

Supported OS

All

<- ImageGadget() - Gadget Index - ListIconGadget() ->