long FindByValue (LPCTSTR Value, long Start,
SapControlType Type, SapDirection Direction)
Parameters
Value |
String containing the value of the field to search for. |
Start |
Index of control where search begins; 0 to search all controls. |
Type |
Type of control to search for. (See SapControlType Enumeration.) |
Direction |
If non-zero, returns the control immediately to the right, left, up, or down from the control. (See SapDirection Enumeration. ) If used with the type field, the search will match a value of any control type, and then search in the given direction for the specified type. |
Return Value
Index of the first control satisfying the search criteria; -1 if not found.
Comments
FindByValue searches based on the value names of the fields. This is the quickest method of searching for fields in R/3 Systems through version 3.0B, but the resulting code is language-dependent.