Difference between revisions of "ObjectType:variablescope"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
== Methods == | == Methods == | ||
*'''Clear''': Deletes all variables within this scope | *'''Clear''': Deletes all variables within this scope | ||
− | *'''CreateVariable['''object type''','''name''',...]''': Creates a new variable in this scope of the given object type and name | + | *'''CreateVariable['''object type''','''name''','''...''']''': Creates a new variable in this scope of the given object type and name. Any extra parameters are passed to object initialization |
*'''DeleteVariable['''name''']''': Deletes the variable in this scope with the given name, if any | *'''DeleteVariable['''name''']''': Deletes the variable in this scope with the given name, if any | ||
*'''GetIterator['''[[ObjectType:iterator|iterator]] object''']''': Initializes the given [[ObjectType:iterator|iterator]] object for iteration of this variable scope | *'''GetIterator['''[[ObjectType:iterator|iterator]] object''']''': Initializes the given [[ObjectType:iterator|iterator]] object for iteration of this variable scope | ||
== See Also == | == See Also == | ||
− | + | {{LavishScript:ObjectType}} | |
− | |||
− |
Latest revision as of 16:15, 8 July 2018
Contents
Overview
variablescope | |
Defined By | LavishScript |
Inherits | none |
Reduces To | NULL |
Variable Object Type | variablescope |
Uses Sub-Types | no |
C/C++ Type | CVariableScope * |
A variablescope is a container for variables. When a scope is destroyed, so are its variables. This object type is used for all variable scopes -- when a new variable is created, it has to be placed in an available scope.
Members
All variables contained in the variablescope are variablescope members. For example, if an int variable named Test is within the scope, then it is a member of the variablescope.
Methods
- Clear: Deletes all variables within this scope
- CreateVariable[object type,name,...]: Creates a new variable in this scope of the given object type and name. Any extra parameters are passed to object initialization
- DeleteVariable[name]: Deletes the variable in this scope with the given name, if any
- GetIterator[iterator object]: Initializes the given iterator object for iteration of this variable scope
See Also
LavishScript Object Types
- Text
- string - mutablestring - unistring
- Numbers
- byte - float - float64 - int - uint - int64
- Boolean (TRUE/FALSE)
- bool
- Pointers
- boolptr - byteptr - floatptr - float64ptr - intptr - uintptr - int64ptr - rgbptr - stringptr
- Containers
- objectcontainer - array - index - collection - queue - stack - set - variablescope
- JSON
- jsonobject - jsonarray - jsonvaluecontainer - jsonvalue
- Iteration
- iterator - jsoniterator
- Date/Time
- time
- File Handling
- filepath - file - filelist - filelistentry
- Tasks
- lavishmachine - Accessed via the Top-Level Object LMAC
- task - tasklibrary - taskmanager - tasktype - taskpulseargs - elmactaskstate