For readability and self-documentation I thought I'd try to use UDT's in some code.
I get the error "ByRef Argument Type Mismatch" and help isn't helpful, just telling me that data types need to match.
So, reduced to a trivial case for the purpose of trying to figure out what to do:
To my mind this should work as I think I'm consistent with data types.
So what am I doing wrong?
I get the error "ByRef Argument Type Mismatch" and help isn't helpful, just telling me that data types need to match.
So, reduced to a trivial case for the purpose of trying to figure out what to do:
Code:
Public Type Voltage
value As Double
End Type
---------------
Public Function test(myinput As Voltage) As Voltage
test.value = myinput.value
End Function
To my mind this should work as I think I'm consistent with data types.
So what am I doing wrong?