How to create a local variable of a specific type?

As part of an expression I want to create a local variable of a specific type. I have defined a CDT called CDT_Error and i want to create a the local variable of that type.

How do i achieve this?

OriginalPostID-223158

OriginalPostID-223158

  Discussion posts and replies are publicly visible