5.4.3.7 RSet Statement
-
rset-statement = "RSet" bound-variable-expression "=" expression
Static Semantics.
The declared type of <bound-variable-expression> MUST be String or Variant.
Runtime Semantics.
The value type of <bound-variable-expression> MUST be String.
Let qLength be the number of characters in the data value of <bound-variable-expression>.
Let eLength be the number of characters in the data value of <expression>
If the number of characters in <expression> is less than the number of characters in the data value of <bound-variable-expression>:
The data value of (qLength – eLength) spaces followed by the data value of <expression> is Let-coerced into <bound-variable-expression>.
Otherwise:
The data value of the first qLength characters in <expression> are Let-coerced into <bound-variable-expression>.