Difference between revisions of "DEFINE"
From Recital Documentation Wiki
		
		
		
Yvonnemilne  (Talk | contribs)  | 
				Yvonnemilne  (Talk | contribs)   | 
				||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
==Class==  | ==Class==  | ||
Memory Variables  | Memory Variables  | ||
| Line 26: | Line 23: | ||
#DEFINE NEXT_LOOP  | #DEFINE NEXT_LOOP  | ||
for i = 1 to NEXT_LOOP  | for i = 1 to NEXT_LOOP  | ||
| − | ? i  | + |     ? i  | 
next  | next  | ||
</code>  | </code>  | ||
Revision as of 11:02, 28 April 2009
Class
Memory Variables
Purpose
Defines a constant
Syntax
#DEFINE <memvar> <exp>
See Also
#IFDEF, 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.
Example
#DEFINE NEXT_LOOP for i = 1 to NEXT_LOOP ? i next
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer