Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
charAt Method

StringPrototype.charAt Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns the character at the specified position in the specified object.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

[JSFunctionAttribute(JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_charAt)]
public static string charAt(
	Object thisob,
	double pos
)

Parameters

thisob
Type: System.Object

The object that this method is acting upon.

pos
Type: System.Double

The position of the character to return.

Return Value

Type: System.String
The character at pos, if there is one.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft