点击或拖拽改变大小

MemVar 方法

X#

MemVar 类型公开以下成员。

方法
  名称说明
公共方法静态成员_Get
Get the value of a local, private or public (in that order). Throws an exception when the variable does not exist.
公共方法静态成员_GetSafe
Get the value of a local, private or public (in that order). Returns NIL if the value does not exist.
公共方法静态成员_Put
Updates the value of a local, private or public (in that order). If the value does not exist than a new variable at the current level is created.
公共方法静态成员Add
Add a public memvar or a private memvar to the current level.
公共方法静态成员Clear
Clear a variable by name. Tries to clear a private first and when that is not found then a public
公共方法静态成员ClearAll
Clear all memvar name/value pairs. Does not remove locals. Does not remove privates stack levels.
公共方法静态成员GetHigherLevelPrivate
Get a memvar object from the stack (if it exists)
公共方法静态成员Initialize
公共方法静态成员PrivateFind
Find a private variable. Try on the current level on the stack first and when not found then walk the stack.
公共方法静态成员PrivatePut
Update a private variable. Does NOT add a new variable
公共方法静态成员PrivatesCount
Get the total number of unique private variable names.
公共方法静态成员PrivatesEnum
Get an enumerator for all the unique names of private variables
公共方法静态成员PrivatesFirst
Get the first unique private variable name.
公共方法静态成员PrivatesNext
Get the next unique private variable name.
公共方法静态成员PublicFind
Find a public variable
公共方法静态成员PublicPut
Update a public variable. Does NOT create a new public when there is no variable with that name.
公共方法静态成员PublicsCount
Gets the total number of public variables.
公共方法静态成员PublicsEnum
Get an enumerator for all the unique names of public variables
公共方法静态成员PublicsFirst
Gets the name of the first public variable.
公共方法静态成员PublicsNext
Gets the name of the next public variable.
公共方法静态成员Release
Release a private variable
公共方法静态成员ReleaseAll
Assign NIL to all visible private variables. Hidden privates are not affected.
公共方法静态成员ReleasePrivates
Release all privates at a certain level and higher
公共方法静态成员TryGet
Try to retrieve the value of a local, private or public (in that order).
Top
参见