Difference between revisions of "NET:LavishScriptAPI.LavishScriptObject.GetValue"
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: | + | *** [[NET:LavishScriptAPI.LavishScriptObject|LavishScriptObject class]] |
**** GetValue function | **** GetValue function | ||
Line 38: | Line 38: | ||
== See Also == | == See Also == | ||
− | * [[NET: | + | * [[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
Contents
Overview
Performs the equivalent of Object.ToString, converting the result to the desired type.
Reference Library
Fully Qualified Name
- LavishScriptAPI.LavishScript.Objects.GetObject
- LavishScriptAPI namespace
- LavishScript class
- LavishScriptObject class
- GetValue function
- LavishScriptObject class
- LavishScript class
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();