Hi
We have recently attended a SAP UI developers course and we had the following code that worked fine. Now 3 months later we try the code again we get an exception "Object not found" at the addex line.
I have tried using the debugger and it appears that the createobject did not work correctly.
We have tried various machines and various releases of Win XP.
Anybody got any ideas ?
Regards
Chris
Here is the code...
SAPbouiCOM.FormCreationParams formCreator = (SAPbouiCOM.FormCreationParams)sboApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams);
formCreator.UniqueID = "BOY_UDO";
formCreator.BorderStyle = formBorderStyle.fbs_Fixed;
formCreator.FormType = "BOY_UDO";
formCreator.ObjectType = "BOY_UDO_TEST";
try
{
Form f = sboApp.Forms.AddEx(formCreator);
f.Title = "UDO Test";
f.Height = 270;
f.Width = 220;
f.Visible = true;
}
catch(Exception ex)
{
throw new Exception("addex error ", ex);
}