Next Topic

Previous Topic

Book Contents

CreateItem

bool CreateItem(string sName,string sKey,string sData=NULL,int iSize=0)

Return values

Non zero if the function is successful; otherwise 0.

Parameters

  • sName - Unique name of the item, if the name is already created this function fail.
  • sKey - Key name of the item, must be unique if it already exist this function will fail.
  • sData - Optional data that will be associated with the item
  • iSize - Size of the data, only needed if data is supplied with function.

Remarks

The function creates an item and an sub item called a "key", the user can associate data with this key. The data can later be acquired by called the function FindItem.