Defining variable value type

This article describes the standards that apply to defining varialbe value type. All of the listed recommendations are mandatory unless noted otherwise.

To define a variable value type, use comparison with a type. Do not use any other methods.


If TypeOf(Ref) = Type("DocumentRef.GoodsReceipt") Then


If Ref.Metadata().Name = "GoodsReceipt" Then