eXpress Open Architecture Reference
×
Menu
Index

IDesign::FindID

 
IDispatch *FindID(
                  [in] long i
);
 

Return Values

 
This method returns an IDispatch interface corresponding to an entity with an eXpress design that matches the specified ID.
 

Remarks

 
This method is used to quickly locate entities based on their ID without having to query down inside the entity they may be contained within. For example, if a Port ID is known but the object in which it is stored is not, this function will perform the work of searching through every object for that port. Since eXpress is performing this search itself, it requires less time than manually searching through every object through the COM interface. Furthermore, eXpress caches many of the IDs for a further speed increase.