Description
A collection of
Cockpit objects. This object holds all the cockpits in the application.
Object Model
Example
| Getting All Cockpits on UI (C#) | Copy Code |
|---|
SAPbouiCOM.Cockpits ckpts = sbo_Application.Cockpits; int iCkptsCount = ckpts.Count; if(iCkptsCount > 0) { //0-based for(int iLoop=0; iLoop<iCkptsCount; ++iLoop) { SAPbouiCOM.Cockpit ckpt = ckpts.Item(iLoop); string strCkptTypeID = ckpt.CockpitTypeID; } } |
|
| Getting the Current Cockpit (C#) | Copy Code |
|---|
SAPbouiCOM.Cockpits ckpts = sbo_Application.Cockpits; SAPbouiCOM.Cockpit ckpt = (SAPbouiCOM.Cockpit)ckpts.CurrentCockpit; //Store the cockpit type ID for "SwitchCockpit" later. strCurrentCockpitTypeID = ckpt.CockpitTypeID;
|
|
See Also