| Description | 
InStr (Magic xpa 4.x)
| 
 Returns a number that represents the first position of a sub-string within an Alpha string or an Alpha expression. 
 |  | 
 Syntax: 
 | 
 InStr(string,substring) 
 |  | 
 Parameters: 
 | 
 string: An Alpha string or alpha expression.
  substring: An Alpha string which will be the search argument in string 
 |  | 
 Returns: 
 | 
 Number, 0 if not found 
 |  | 
 Examples: 
 | 
 InStr('abcd','b') returns 2
  InStr('ABCDEF','DE') returns 4 
 |  | 
 See also: 
 | 
 The Online and Rich Client Samples projects (program ST07 and RST07) 
 |  
   |  
  | 
|---|