The InStr attribute function looks for a string in the string of the variable from the left and returns the position.
|
Syntax | ||||
|
InStr(SearchFor, [LanguageID, [Compare]]) | ||||
|
Return value | ||||
|
Type |
Description | |||
|
Long |
Value > 0 if search successful, otherwise 0 | |||
|
Parameter | ||||
|
Use |
Name |
Type |
Passing |
Description |
|
Required |
SearchFor |
String |
ByVal |
String, to search for |
|
Optional |
LanguageID |
String |
ByVal |
Language-ID of the value |
|
Optional |
Compare |
CompareModes |
ByVal |
Language-ID of the value |
|
Note | ||||
|
If LanguageID is not specified, the dialog language applies. | ||||
|
CompareModes |
Description |
|
0 – BinaryCompare |
An exact comparison is carried out |
|
1 – TextCompare |
Uppercase and lowercase letters are not considered |