Difference between revisions of "DEFINE"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Defines a constant | Defines a constant | ||
Line 11: | Line 4: | ||
==Syntax== | ==Syntax== | ||
− | #DEFINE <memvar> <exp> | + | #DEFINE <memvar> <exp> |
Line 26: | Line 19: | ||
#DEFINE NEXT_LOOP | #DEFINE NEXT_LOOP | ||
for i = 1 to NEXT_LOOP | for i = 1 to NEXT_LOOP | ||
− | ? i | + | ? i |
next | next | ||
</code> | </code> | ||
Line 32: | Line 25: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Memory Variables]] | ||
+ | [[Category:Memory Variables Commands]] |
Latest revision as of 15:43, 10 November 2009
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 Server, Recital