The following chart shows which fields and values with the following semantic data types can be assigned to each other. In each case, the semantic data type of the result is the semantic data type of the left operand, unless the left operand is a local variable. If the left operand is a local variable, the semantic data type of the result is the semantic type of the right operand. Y indicates a valid operation.
In assignment-by-name, the field values of the table on the right are assigned to identically named fields of the table on the left. The field names are replaced with the asterisk symbol (*) for both the source and target tables.
One use of assignment-by-name assigns the values of fields of a screen table to fields of a data table, or vice versa. The following illustrates the assignment relationship between the screen fields in the screen table INPUTORDERS and the fields in the ORDERS table, as viewed in a user’s application: