SET WITH
SET WITH action
Function | Changes several values at the same time (always in connection with structures). | ||||||
Declaration | SET dstIdent_Rec WITH srcIdent_Rec | ||||||
Parameters |
| ||||||
Description | The structure types of the parameters
The action sets the values of items from RECORD (SD.RecordDef) _lArr1 is not permitted and the script editor reports an error during the compilation. RECORD (SD.RecordDef) _lArr1 The action SET WITH will generate the error RECORD (SD.RecordDef) _lArr1 When copying values to a local variable of RECORD type, which contains items of Object type, the action sets values of the objects, the individual adjusted items are pointed to. This effect is not always desirable. Therefore it is possible to use the NOALIAS modifier when you declare a local variable of RECORD type as follows: RECORD NOALIAS (SD.RecordDef) _lArr1 For a local variable declared in this way, the pointing feature for all items of Object type is disabled. Their type is not predefined. A value of any type may be assigned to them. For example: _lArr1[1]^Object := 1 See also: | ||||||
Example | RECORD (SD.RecordDef) _lArr1 |
Related pages: