General information
Category:
COM/DCOM and OLE Automation
Hello friends of the forum are developing a Dll in VFP6.0Sp5 but not you that
to make that when the Dll throws an error this he/she informs the user the error
that happened as this way:
Ejplo Dll
DEFINE CLASS Prueba AS Custom OLEPUBLIC
Procedure Suma
parameters valor1,valor2,valor3
On Error xerror=.t.
suma=valor1+valor2+valor3
If xerror <--- Si Ocurrio el Error enviar un mensaje al Usuario
return "Error en el Traspaso de alguna variable" <- Un Ejmplo
cualquiera
Else
return suma
Endif
Enddefine
In my Button of my form that he/she calls to the Dll
oPrueba=Createobject (" Prueba.prueba ")
Xsuma=oPrueba.suma(1,1,A) <--- I send him variable TO as character so that me
throw the Error
I arrive until here one doesn't eat to show the Error that my Dll sends sum since
it can return numeric as the message of Error it can return, when
I activate the On Error in my Form I hurtle Error in Ole Custom....... but not
it throws me the personalized message that I want somebody he/she can tell me as giving solution to
This.
He/she notices:
As it could manage the transactions in an environment multiuser by means of Ado
Thank you for the whole help that you/they can offer me
Dante Castillo Z.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only