Hi Jack,
Not the best... Should better do somthing like
oCompany = new SAPbobsCOM.Company
set oCompany = SBO_Application.Company.GetDiCompany()
It lets you use the same DI connection than the UI, so less memory consumed, better performance, and so on.
Regards
Eric