Specifications

Section 11. String Functions
11-4
Parameter
& Data Type
Enter
Start
Integer
An integer that specifies where in the SearchString to start looking for the
FilterString. A 1 indicates the first character in the string.
SearchString
String or
Variable
The string to evaluate for the FilterString.
FilterString
String or
Variable
The string to look for in the SearchString..
SearchOption
Constant
A code used to help define the method of searching.
Numeric
Code
Description
0 NUMERIC - Numerics in the SearchString (FilterString
is ignored)
1 NON-NUMERIC - Non-numerics (FilterString is
ignored)
2 SEARCHSTRING - Each FilterString in SearchString
3 SEARCHCHARS - Each occurrence of any character that
is in FilterString
4 HEADERFILTER - Strings succeeding FilterString
6 HEADERFILTERCHARS - Strings succeeding any
character in the FilterString char list
8 NUMERICHEX - Hexadecimal numerics in the
SearchString (FilterString is ignored
InStr Example
In the following program example, the Instr instruction is used to find the
position of the text "direction:" in a string (SearchString). The result is stored
in the variable Start1.
BeginProg
SearchString = "maximum wind speed: 100 mph; direction: 263 degrees; Site 11 Cedar Mountain."
FilterString1 = "direction:"
Scan (1,Sec,0,0)
Start1 = InStr (1,SearchString,FilterString1,2)
NextScan
EndProg
LowerCase (SourceString)
Returns a lower case string of SourceString
Mid (SearchString, Start, Length)
The Mid instruction is used to return a substring that is within a string.
Syntax
String = Mid ( SearchString, Start, Length )