Difference between revisions of "NET:LavishScriptAPI.LavishScriptObject.GetValue"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
Line 9: Line 9:
 
*[[NET:Lavish.InnerSpace.dll#LavishScriptAPI_namespace|LavishScriptAPI namespace]]
 
*[[NET:Lavish.InnerSpace.dll#LavishScriptAPI_namespace|LavishScriptAPI namespace]]
 
** [[NET:Lavish.InnerSpace.dll#LavishScript|LavishScript class]]
 
** [[NET:Lavish.InnerSpace.dll#LavishScript|LavishScript class]]
*** [[NET:Lavish.InnerSpace.dll#LavishScript.LavishScriptObject|LavishScriptObject class]]
+
*** [[NET:LavishScriptAPI.LavishScriptObject|LavishScriptObject class]]
 
**** GetValue function
 
**** GetValue function
  
Line 38: Line 38:
  
 
== See Also ==
 
== See Also ==
* [[NET:Lavish.InnerSpace.dll#LavishScriptObject|LavishScriptObject]]
+
* [[NET:LavishScriptAPI.LavishScriptObject|LavishScriptObject]]
 
* [[IS:.NET|Inner Space .NET]]
 
* [[IS:.NET|Inner Space .NET]]
 
* [[NET:Lavish.InnerSpace.dll|Lavish.InnerSpace.dll]]
 
* [[NET:Lavish.InnerSpace.dll|Lavish.InnerSpace.dll]]

Latest revision as of 22:57, 16 December 2006

Overview

Performs the equivalent of Object.ToString, converting the result to the desired type.

Reference Library

Lavish.InnerSpace.dll

Fully Qualified Name

LavishScriptAPI.LavishScript.Objects.GetObject

Declaration

public T GetValue<T>()

Parameters

None

Return Value

  • T
The converted result of LavishScript's "ToString" operation on the LavishScript object.

Examples

Frame.Lock();
LavishScriptObject Obj = LavishScript.Objects.GetObject("LavishScript");
if (Obj == null)
{
    InnerSpace.Echo("object not found");
}
else
{
    /* "LavishScript" object's ToString value is its version number, which follows the form of a typical float */
    float Version = Obj.GetValue<float>();
    InnerSpace.Echo("LavishScript Version " + Version.ToString());
}
Frame.Unlock();

See Also