Consultor Eletrônico



Kbase 20370: OPEN CLIENT: How to Determine if OC_Connect Worked in VB
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/11/2004
Status: Verified

GOAL:

How to determine whether the OC_Connect method of a Proxy Object worked in Visual Basic.

FIX:

On Error Resume Next

Call SomeProxyObject.OC_Connect (<connection parameters go here>)

If Err.Number = 0 Then
MsgBox 'Connection Worked'
Else
MsgBox Err.Description
End If