Difference between revisions of "VARINFO()"
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return scope information about a memory variable or array | Function to return scope information about a memory variable or array | ||
− | |||
==Syntax== | ==Syntax== | ||
VARINFO(<expC>) | VARINFO(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[DECLARE]], [[DIMENSION]], [[DO]], [[DISPLAY MEMORY]], [[LOCAL]], [[NAMESPACE]], [[NAMESPACE()]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC | + | [[DECLARE]], [[DIMENSION]], [[DO]], [[DISPLAY MEMORY]], [[LOCAL]], [[NAMESPACE]], [[NAMESPACE()]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC]], [[SET STRICT]], [[STORE]] |
− | + | ||
==Description== | ==Description== | ||
The VARINFO() function returns scope information about a memory variable or array. The memory variable or array name is specified in the character string <expC>. For public variables and arrays, VARINFO() returns the character string "Public". For private and local variables and arrays, VARINFO() returns the character string "Private " followed by the name of the declaring procedure, function or program. Program names are in mixed case and include the full path and file extension. Procedure and function names are returned in upper case. | The VARINFO() function returns scope information about a memory variable or array. The memory variable or array name is specified in the character string <expC>. For public variables and arrays, VARINFO() returns the character string "Public". For private and local variables and arrays, VARINFO() returns the character string "Private " followed by the name of the declaring procedure, function or program. Program names are in mixed case and include the full path and file extension. Procedure and function names are returned in upper case. | ||
− | |||
==Example== | ==Example== | ||
Line 33: | Line 29: | ||
</pre> | </pre> | ||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Memory Variables]] | [[Category:Memory Variables]] | ||
[[Category:Memory Variables Functions]] | [[Category:Memory Variables Functions]] |
Revision as of 12:05, 9 February 2012
Contents
Purpose
Function to return scope information about a memory variable or array
Syntax
VARINFO(<expC>)
See Also
DECLARE, DIMENSION, DO, DISPLAY MEMORY, LOCAL, NAMESPACE, NAMESPACE(), PARAMETERS, PRIVATE, PUBLIC, SET STRICT, STORE
Description
The VARINFO() function returns scope information about a memory variable or array. The memory variable or array name is specified in the character string <expC>. For public variables and arrays, VARINFO() returns the character string "Public". For private and local variables and arrays, VARINFO() returns the character string "Private " followed by the name of the declaring procedure, function or program. Program names are in mixed case and include the full path and file extension. Procedure and function names are returned in upper case.
Example
function func1 public m_var1 private m_var2 ? "m_var1 " + varinfo("m_var1") ? "m_var2 " + varinfo("m_var2") ? endfunc func1()
m_var1 Public m_var2 Private (FUNC1)