Difference between revisions of "Inline Assignment"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Inline assignment | Inline assignment | ||
Line 37: | Line 33: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Applications]] | ||
+ | [[Category:Applications Commands]] | ||
+ | [[Category:Memory Variables]] | ||
+ | [[Category:Memory Variables Commands]] |
Latest revision as of 16:53, 11 November 2009
Purpose
Inline assignment
Syntax
<alias>-><field> | [m->]<memvar> := <exp>
See Also
PRIVATE, PUBLIC, REPLACE, SET CLIPPER, SET CLIPPER5, SET COMPATIBLE, STORE
Description
The := inline assignment operator is used to assign a value to a field or memory variable. Assignment can also be achieved using the STORE command or '=' operator in the case of memory variables and the REPLACE command for fields. The tables alias name and alias operator, '->' must be specified when assigning a value to a field. If these are missing, the target is assumed to be a memory variable and is created as a PRIVATE memory variable if it does not already exist. The 'm->' memory alias pointer can be specified, but is not required.
Example
use names ? "mid_name='",mid_name, "'" //Create memvar 'mid_name' mid_name := "James" replace names->mid_name with "" //Assign value to field 'mid_name' names->mid_name := "James" m_name := "James" ? "mid_name='",mid_name, "'" ? "mid_name='",m->mid_name, "'" ? "m_name='",m_name,"'" ?
Products
Recital Server, Recital