The function searches a list of items (cListToBeSearched) for an item (cToSearch) and returns another a string item at the same ordinal position from another list (cListOfReturnItems).
String to be searched. eToSearch can be of any data type
List of items for searching (matching). If eToSearch is not of character type, the function will convert each member item of cListToBeSearched into the same data type before comparing. Please don't put any space after each comma. Otherwise the space will be regarded as a character is the item.
List of items for returning. If the nth item in cListToBeSearched matches eToSearch, the nth item of cListOfReturnItems will be returned. If no match is found in cListToBeSearched, the function will return a value as follows:
|•||IF the number of items in cListOfReturnItems is greater than the number of items in cListToBeSearched, the first excess item of cListToBeSearched will be returned.|
|•||Otherwise, .Null. will be returned.|
Please don't put any space after each comma. Otherwise the space will be regarded as a character is the item.
If a .Null. value is passed into eToSearch, the function will return the value of cNullSearchReturn. However, if cNullSearchReturn is empty, .NULL. will be returned.
The default list item separator is comma (,), you may change the separator by passing a string into cSeparator.
String "ee" will be returned.
.Null. will be returned.
String "gg" will be returned.
String "hh" will be returned.
String 'Right("Many",2)' will be returned.
If y=10, String "dd" will be returned.
IF y is true, the function returns "12". If y is false the function returns "23". If y is null, "35" will be returned.
If HrDate( ) is 14th Jan 2000, String "12" will be returned.