Assign values to user-type variable

Hi,

is it possible to assign values to all parts of a variable of a user defined type using only assignment statement?

For example:

type myType

name as string

value as integer

end type

dim myVariable as myType

<<<myVariable = “name”, 0 >>>

… so that myVariable.name gets “name” and myVariable.value gets 0?

Many thanks,

Peter

Subject: assign values to user-type variable

No, you’d need to set up a function or sub to do that for you.