Code : VBA.
Bentley : OpenCities Map CONNECT Edition Update 6 - Version 10.06.01.06 (64bits)
BD : Oracle 11g
BD Client : Oracle 12c
Hi, I want to post my feature to Oracle. I found "GDI POST FENCE ..." but i have no callback for my code VBA when an Oracle error occurs.
I want to list errors or perform some other function when the post is successful.
How can i do that in VBA?
Thanks
Mario
An option might be checking the content of the MS MessageCenter with the method MessageCenter.GetMessage.
Below an VBA example that checks whether the keyin "Gdi Connect" was successful. .
CadInputQueue.SendKeyin "gdi disconnect; Gdi Connect file=" & newFileName Dim tMsg As MessageCenterMessage tMsg = MessageCenter.GetMessage(1) If InStr(tMsg.message, "Exception") > 0 Then MessageCenter.AddMessage "No connection with ...
Yes, it is an alternative. But, I am not able to recover the number of features in error or the Oracle error.
No clue how to find out with a VBA the number of features that should be posted.I thought there is also a log file created with the Oracle error and description. Maybe that file can be checked.