Good evening,
I just got the following error message:
Compile Error:
Only user-defined types defined in a public object module can be coerced to or from a variant or passed to late-bound functions.
My code is really simple.
I am defining a new data type (Complex number, with a Real and imaginary component).
But every time I try to use this new data type from a private procedure by setting a value
, where TF and the CF array are defined as my complex type, I get this pesky error.
I feel as though I am missing something so basic that I will be greatly embarassed when my error is pointed out. Even so, if you know where I am messing up, please help anyhow!
I just got the following error message:
Compile Error:
Only user-defined types defined in a public object module can be coerced to or from a variant or passed to late-bound functions.
My code is really simple.
I am defining a new data type (Complex number, with a Real and imaginary component).
But every time I try to use this new data type from a private procedure by setting a value
Code:
TF = CF(J)
I feel as though I am missing something so basic that I will be greatly embarassed when my error is pointed out. Even so, if you know where I am messing up, please help anyhow!