Inline Assignment
Class
Applications
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 Database Server, Recital Mirage Server, Recital Terminal Developer