please dont rip this site
Microsoft® JScript
substring Method

See Also

Language Reference |

Description

Retrieves the substring at the specified location within a String object.

Syntax

strVariable.substring( start, end )
"String Literal".substring( start, end )

The substring method syntax has these arguments:

start The zero-based index indicating the beginning of the desired substring.
end The zero-based index indicating the end of the desired substring.

Remarks

The substring method returns a string object containing the substring derived from the original string object.

The substring method uses the lower of start and end as the beginning point of the substring. For example, strvar.substring(0, 3) and strvar.substring(3, 0) will return the same substring.

The only exception to this is for negative parameters. If the first parameter is less than zero, it will be treated as zero. If the second parameter is negative, it will be set to the value of the first parameter.

The length of the substring is equal to the absolute value of the difference between start and end. For example, the length of the substring returned in strvar.substring(0, 3) and strvar.substring(3, 0) are three.

Finally, start and end can be strings. If so, these strings are coerced into integers if possible. If not, the value of the parameter is treated as zero.


© 1996 by Microsoft Corporation.

See also:


file: /Techref/language/asp/js/254.htm, 2KB, , updated: 1996/11/22 11:12, local time: 2019/5/19 14:54,
TOP NEW HELP FIND: 
3.208.22.127:LOG IN

 ©2019 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?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/language/asp/js/254.htm"> Microsoft&#174; JScript Language Reference </A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2019 contributors:
o List host: MIT, Site host massmind.org, Top posters @20190519 RussellMc, David Van Horn, AB Pearce - UKRI STFC, Bob Blick, David C Brown, Allen Mulvey, Dwayne Reid, James Cameron, Jason White, Neil,
* 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!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .