Language Reference |
See Also Applies To
Returns a substring beginning at a specified location and having a specified length.
stringvar.substr(start [, length ])
The substr method syntax has these parts:
Part Description stringvar Required. A string literal or String object from which the substring is extracted. start Required. The starting position of the desired substring. The index of the first character in the string is zero. length Optional. The number of characters to include in the returned substring.
If length is zero or negative, an empty string is returned. If not specified, the substring continues to the end of stringvar.
© 1997 by Microsoft Corporation. All rights reserved.
|file: /Techref/inet/iis/jscript/htm/js848.htm, 2KB, , updated: 2008/2/1 18:32, local time: 2018/11/21 01:07,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/inet/iis/jscript/htm/js848.htm"> substr Method</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20181121 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Isaac M. Bavaresco, Bob Blick, Neil, Manu Abraham, John Gardner, AB Pearce - UKRI STFC,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!