GetGadgetData()

Syntax

Result = GetGadgetData(#Gadget)
Description
Returns the 'Data' value that has been stored for this gadget with the SetGadgetData() function. This allows to associate a custom value with any gadget. If there was never a data value set for this gadget, the returnvalue will be 0.

This function works with all PureBasic gadgets. See SetGadgetData() for an example.

Supported OS

All

<- GetGadgetColor() - Gadget Index - GetGadgetFont() ->