
Public Method in a class calling a private method in same class yields ByRef error
OK,
I have some code in a public method calling a private worker method all in a
public multiuse class of an ActiveX DLL project. The problem is that it
wont compile because I get this error...
Compile Error
ByRef argument type mismatch
The code in the public method calls the private method like this...
Dim part1, part2 As Long
...
SplitZip part1, part2, entireZipCode
And the function signature for the private method is as so.
Private Function FormatZip(ByVal part1 As Long, ByVal part2 As Long) As
String
...
End Function
The types are the exact same! Why is VB throwing this error!
Thanks for any help.
Regards,
Bob Hansen