at( ) Function

Description:
  The at() function returns the starting offset in cDest where cSearch can be found. If cSearch is not contained within cDest, -1 is returned. The comparison is case sensitive. For a case insensitive search, see the ati() function.  

Syntax:
  retval = at( cSearch, cDest )

Parameters:
  string: cSearch String to search for.
  string: cDest String to search in.
  numeric: retval The starting offset in cDest where 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 = at( var1, var2 )

	println( retval )				// Print results to screen

  

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