SetGlobalValue
SetGlobalValue

Sets the specified global value to a number/string/object/array/etc.

bSuccess = mySpecial.SetGlobalValue( Global_Value_Name, Value )

Return value
TRUE if the value was set successfully, otherwise FALSE.

Parameters
  • Global_Value_Name
    A string containing the name of the global value to set (not case-sensitive). Note, if this is not found, a new global value will be created.
  • Value
    The value to set it to
Comments

A hashing technique taken from Hech's Hash object is used to speed up global value access. By default, 300 tables are used for this, but this can be changed easily for future releases.
If the value is not found, it will be created. If a number key is specified, it will be converted to a string and used as normal.
Any variable can be stored in a global value.

See also
Special:AddToGlobalValue
Special:GetGlobalValue
Special:GetAllGlobalValues



JAM © 2005 no one in partiular
Project started by David Evans in 2005