long FindFrom (long Start, SapControlType Type,
SapDirection Direction, short Amount)
Parameters
Start |
Index of starting control. |
Type |
Type of control to search for. (See SapControlType Enumeration.) |
Direction |
Direction to search. (See SapDirection Enumeration. ) |
Amount |
Number of controls to search in given direction. |
Return Value
Returns the index to the control located the specified amount away from the starting control index, searching in the given direction. Returns -1 if no such control exists.
Comments
FindFrom is commonly used to move through controls in step-loops that have neither distinct string values nor field names associated with them.