GetValueIndex (valueList, valueString, matchCase, occurrence)
Rate this function: Average rating: 4.4 (7 votes) Discuss this Custom Function
Lewis C. Lorenz, Attorney at Law
http://www.LorenzCom.com
Return index to value in valuelist. Search case sensitive or insensitive. Search for occurrence from front or end.
Sample Input:
ValueListIndex ("Alpha¶Bravo¶Charlie¶Echo", "charlie", False, 1)
ValueListIndex ("Alpha¶Bravo¶Charlie¶Echo", "charlie", True, 1)
ValueListIndex ("James¶Bill¶James¶Frank¶James¶Ed", "james", False, -2) |
|
Sample Output:
|
Description:
GetValueIndex (valueList, valueString, matchCase, occurrence)
by Lewis C. Lorenz.
9-20-2011: Created
9-22-2011: Updated.
Retrieve the index of the matching valueString in the valueList. Returns 0 if not found.
Optionally toggle case-sensitive searching by passing a boolean through matchCase.
Optionally search for specific valueString occurrence (a negative occurrence number causes backward search from the end of the valueList).
Examples:
ValueListIndex ("Alpha¶Bravo¶Charlie¶Echo", "charlie", False, 1) = 3
ValueListIndex ("Alpha¶Bravo¶Charlie¶Echo", "charlie", True, 1) = 0
ValueListIndex ("James¶Bill¶James¶Frank¶James¶Ed", "james", False, -2) = 3
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
Backwards( _Field ) |
| |
(Thu, May 23, 10:49am) |
| 2. |
FilteredPortalList ( fieldObjectName ; portalRow ) |
| |
(Tue, May 21, 5:33pm) |
| 3. |
ListToggle ( InList ; InValue ) |
| |
(Thu, May 16, 6:59pm) |
| 4. |
VatFormat ( vat ) |
| |
(Tue, May 14, 2:45am) |
| 5. |
CheckVatBE ( vat ) |
| |
(Tue, May 14, 2:32am) |
| 6. |
CheckIBAN (IBAN ) |
| |
(Tue, May 14, 2:24am) |
| 7. |
OrcidCheckDigit ( Orcid_id ; Result ; Iterations ) |
| |
(Wed, May 08, 1:44am) |
| 8. |
DateRangeBySpan ( Begin ; End ; Term) |
| |
(Mon, May 06, 6:53am) |
 |
|