Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript String Object charAt Method

Retrieves the character at the index specified.

Syntax: JScript String Object charAt Method

strVariable.charAt(index)

"String Literal".charAt(index)

Arguments: JScript String Object charAt Method

strVariable

The name of a String object.

index

The zero-based index of the desired character. Valid values are between 0 and the length of the string minus 1.

Remarks: JScript String Object charAt Method

The charAt method returns a character value equal to the character at the specified index. The first character in a string is at index 0, the second is at index 1, and so forth. Values of index out of valid range return undefined.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.