IsGadget()

Syntax

Result = IsGadget(#Gadget)
Description
Tests if the given #Gadget number is a valid and correctly initialized gadget. This function is bullet-proof and can be used with any value. If the 'Result' is not zero then the object is valid and initialized, else it returns zero. This is the correct way to ensure than a gadget is ready to use.

Supported OS

All

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