Difference between revisions of "UNDEF"

From Recital Documentation Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=#UNDEF=
 
 
 
==Class==
 
Memory Variables
 
 
 
 
==Purpose==
 
==Purpose==
 
Stops text substitution for a constant created with #DEFINE
 
Stops text substitution for a constant created with #DEFINE
Line 25: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
#DEFINE NEXT_LOOP
 
#DEFINE NEXT_LOOP
for I = 1 to NEXT_LOOP
+
for i = 1 to NEXT_LOOP
? i
+
    ? i
 
next
 
next
 
#UNDEF NEXT_LOOP
 
#UNDEF NEXT_LOOP
Line 33: Line 26:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 16:28, 25 November 2009

Purpose

Stops text substitution for a constant created with #DEFINE


Syntax

#UNDEF <constant>


See Also

#DEFINE, LOCAL, PRIVATE, PUBLIC


Description

The #DEFINE command is used to define FoxPro compatible constants. Constants declared using #DEFINE can be overridden by a memory variable of the same name, but cannot be modified or manually released after their initial declaration. Constants are automatically updated if the value of <exp> changes and are released on exit from the session. The #UNDEF command stops the text substitution for a constant created with #DEFINE


Example

#DEFINE NEXT_LOOP
for i = 1 to NEXT_LOOP
    ? i
next
#UNDEF NEXT_LOOP


Products

Recital Server, Recital