GetGadgetData()

语法

Result = GetGadgetData(#Gadget)
概要
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.

参数

#Gadget The gadget to use.

返回值

Returns the current data value. If there was never a data value set for this gadget, the return-value will be 0.

Remarks

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

参阅

SetGadgetData(), GetGadgetItemData(), SetGadgetItemData()

已支持操作系统

所有

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