Difference between revisions of "VARINFO()"

From Lianjapedia
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
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]], [[SET CLIPPER]], [[SET STRICT]], [[STORE]]
+
[[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>
  
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Memory Variables]]
+
[[Category:Declaring Variables and Arrays]]
[[Category:Memory Variables Functions]]
+

Latest revision as of 07:33, 4 February 2013

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)