earizmendi
3rd January 2006, 05:02
In the last few days we have doing some little things with VB6 and BaanIVc4...through AFS, we has update the session "tcmcs0145m000" with success, but we can't close the connection...

Does anybody can help us with this issue...
here the code that we are using...

*----------------------------------
If Not BaanObj Is Nothing Then
BaanObj.Quit
Set BaanObj = Nothing
End If
*-----------------------------------

thanks in advance...

:)

vinceco252
3rd January 2006, 14:57
Instead of BaanObj.Quit, I think it should be BaanObj.Disconnect. I hope that helps.

Vince

earizmendi
4th January 2006, 17:47
Thanks Vince, but doesn´t work... when the instruction "Baan.obj.disconnect has been performed the "option dialog" still present...another idea...

Thanks!!!!!

vinceco252
4th January 2006, 18:38
Are you executing an "stpapi.end.session( "tcmcs0145m000" )"?

Vince

earizmendi
5th January 2006, 22:10
Thanks vince, for your help, that was a "big Omission" .... the VB program its closing "ok" ...I'm sorry...

vinceco252
5th January 2006, 22:17
Glad I could help. Good luck!

Vince