ISKernel:dataset (Data Type)

From Lavish Software Wiki
Revision as of 17:09, 20 August 2005 by Lax (talk | contribs)
Jump to navigation Jump to search

Description

Members

  • string Name: Name of the data set
  • float GetFloat[setting]: Retrieves a setting value, as a float
  • float GetFloat[setting,default]: Retrieves a setting value, as a float. Uses the value of default if the value does not exist
  • int GetInt[setting]: Retrieves an setting value, as an int
  • int GetInt[setting,default]: Retrieves an setting value, as an int. Uses the value of default if the value does not exist
  • string GetString[setting]: Retrieves a setting value, as a string
  • string GetString[setting,default]: Retrieves a setting value, as a string. Uses the value of default if the value does not exist
  • int Keys: Total number of keys (and values)
  • string Key[#]: Retrieves the nth key from the list (1-based)
  • int Sets: Total number of sets
  • string Set[#]: Retrieves the name of the nth subset (1-based)
  • dataset Set[name]: Retrieves the subset with the given name

Methods

  • Clear: Clears the data set
  • SetName[name]: Changes the name of the data set
  • Set[setting,value]: Sets (creating if necessary) a setting in this data set
  • UnSet[setting]: Deletes a setting in this data set
  • Clear: Clears the set
  • AddSet[name]: Adds a subset
  • RemoveSet[name]: Deletes a subset
  • Save: Saves the set in its original "setting file" (if any)
  • Save[filename]: Exports the set to the given filename
  • Unload: Unloads the set, dropping any unsaved changes


Returns

Same as Name

Examples

See Also