atlasti( ) Function
Description:
| |
The atLasti() function searches cDest for the first character of the string cSearch and returns the offset.
If first character of cSearch is not found within cDest, -1 is returned.
The comparison is case insensitive.
For a case sensitive search, see the atlast() function. |
|
Syntax:
| |
retval = atlasti( cSearch, cDest ) |
Parameters:
| |
string: cSearch |
String to search for. |
| |
string: cDest |
String to search in. |
| |
numeric: retval |
The offset in cDest where the first character of cSearch can be found or -1 if not found. |
Platforms:
| |
Windows, DOS, Internet Active Pages |
Example:
local var1, var2, retval // Variables
var1 = prompt( "Test Character", "", 1 ) // Obtain Input Data
var2 = "abcdefghijklmnopqrstuvwxyz1234567890" // Search String
retval = atlasti( var1, var2 )
println( retval ) // Print results to screen
|
|