Define the GetIndex Method | |
The GetIndex method returns values in even increments of two for each CO. You must use this approach because the PM uses the indexed offset to determine the help index value for the component. The first CO returns a value of 2, a second CO returns 4, a third CO returns 6, and so on. Failing to return the correct index value can result in your CO components not being set up properly. For example, consider a case where you have two CO components that both return the value of 2 rather than the values of 2 and 4. This would cause the PM to display the index value of 2 twice in the PM's drop-down list of objects.
So, what happened to the PO's GetIndex method, and what does it return? Zero. The CO returns indexes in even increments of two, and the PO always returns zero. |