I have a User Defined Function and CR8 seems to be ok passing values to it but after my UDF (VB6) does it's
manipulations how do I get that value back into CR8??
Does your UDF assign a value to the function? Is the function part of a class module? The following code, inside of a class module in an ActiveX dll project, would (I think; I didn't test it!) return either a 1 or a 2, based on the parameter passed in by the user:
Public Function MyFunction(varUserParm as variant) as Integer
If varUserParm = "Y" then
MyFunction = 1
Else
MyFunction = 2
End if
End Function
That's not exactly an inspired example, but it illustrates the idea.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.