atLast( ) Function

Description:
  The atLast() 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 sensitive. For a case insensitive search, see the atlasti() function.  

Syntax:
  retval = atLast( 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 = atlast( var1, var2 )

	println( retval )				// Print results to screen

  

(c) 2000-2001 by West Coast Web Adventures, Inc., All Rights Reserved