5.5.1.2.7 Let-coercion to and from non-Byte arrays

The semantics of non-Byte array Let-coercion depend on the source’s value type and the destination’s declared type:

Source Value Type

Destination

Declared Type

Semantics

Any non-Byte array

Array with same element type as source type

The result is a shallow copy of the array. Elements with a value type of a class or Nothing are Set-assigned to the destination array element and all other elements are Let-assigned.

Any non-Byte array

Any other type except Variant

Runtime error 13 (Type mismatch) is raised.

Any numeric type, Boolean, Date, or String

Any fixed-size array or non-Byte resizable array

Runtime error 13 (Type mismatch) is raised.

Show: