$bfind » History » Version 4
  Per Amundsen, 02/23/2014 12:31 PM 
  
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ | 
|---|---|---|---|
| 2 | |||
| 3 | *$bfind(&binvar, N, M)* | ||
| 4 | |||
| 5 | Searches a &binvar for a matching value. | ||
| 6 | |||
| 7 | _The search is case-insensitive._ | ||
| 8 | |||
| 9 | *Parameters* | ||
| 10 | |||
| 11 | &binvar - The &binvar to search. | ||
| 12 | N - The position of the &binvar to start the search. | ||
| 13 | 3 | Per Amundsen | M - Numeric ascii character(s) or text to search. | 
| 14 | 1 | Per Amundsen | |
| 15 | *Properties* | ||
| 16 | |||
| 17 | 4 | Per Amundsen | .text - Force a text search if the search text (M) is a number. | 
| 18 | 1 | Per Amundsen | |
| 19 | *Example* | ||
| 20 | |||
| 21 | <pre> | ||
| 22 | ;Finds "test" starting from position 1. | ||
| 23 | //echo -a $bfind(&test, 1, test) | ||
| 24 | |||
| 25 | ;Finds character 32 (a space) from position 5. | ||
| 26 | //echo -a $bfind(&test, 5, 32) | ||
| 27 | |||
| 28 | ;Finds WAV from position 1. | ||
| 29 | //echo -a $bfind(&test, 1, 87 65 86) | ||
| 30 | </pre> |