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

 

JScript String Object substr Method

Returns a substring beginning at a specified location and having a specified length.

Syntax: JScript String Object substr Method

stringvar.substr(start [, length ])

Arguments: JScript String Object substr Method

stringvar

A string literal or String object from which the substring is extracted. Required.

start

The starting position of the desired substring. The index of the first character in the string is zero. Required.

length

The number of characters to include in the returned substring. Optional.

Remarks: JScript String Object substr Method

If length is zero or negative, an empty string is returned. If not specified, the substring continues to the end of stringvar.

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