External function call and Return value (ActiveX)

Hello,I have a problem with an external function call. I have registered a dll and it’s show in lotus designer as an Ole class. When i do the function call it works fine but this function must return a value and i have no idea how to retrieve the value.

Ex:

Set boaComercial=CreateObject(“Nax.Maestro”)

Call boaComercial.Iniciar("Representantes")	

Call boaComercial.Seleccionar	

boaComercial.Seleccionar → return a string value, I try this one: a = boaComercial.Seleccionar but it return me an Automation error…

Any suggestions?

thanks