Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Value from User Defined Function Back to CR8

Status
Not open for further replies.

Ramjet

Programmer
Nov 1, 2000
21
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top