5.5.1.2.11 Let-coercion from Empty

The semantics of Empty Let-coercion depend on the destination’s declared type:

Source Value Type

Destination

Declared Type

Semantics

Empty

 

Any numeric type

The result is 0.

Empty

 

Boolean

The result is False.

Empty

 

Date

The result is 12/30/1899 00:00:00.

Empty

 

String

The result is a 0-length string.

Empty

 

String * length

The result is a string containing length spaces.

Empty

 

Any class or Object

Runtime error 424 (Object required) is raised.

Empty

 

Any other type except Variant

Runtime error 13 (Type mismatch) is raised.