| Language Reference ||
Allows manipulation and formatting of text strings and determination and location of substrings within strings.
String objects can be created implicitly by using string literals. String objects created in this fashion (referred to as standard strings) are treated slightly differently than string objects created using the new statement. Standard strings share a common, global string object. So, if a property is added to a standard string, it is available to all standard string objects:var alpha, beta alpha = "This is a string" beta = "This is also a string" alpha.test = 10
In this example, test is now also defined for beta and all future standard string objects. If you did the following, however, added properties are treated differently:var gamma, delta gamma = new String("This is a string") delta = new String("This is also a string") gamma.test = 10
In this case, test is not defined for delta. Each string object declared in this fashion has its own set of members. This is the only case where the different types of string objects are handled differently.
© 1996 by Microsoft Corporation.
|file: /Techref/language/asp/js/129.htm, 2KB, , updated: 1996/11/22 10:11, local time: 2019/2/16 10:59,
|©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?|
<A HREF="http://www.piclist.com/techref/language/asp/js/129.htm"> Microsoft® JScript Language Reference </A>
|Did you find what you needed?|
PICList 2019 contributors:
o List host: MIT, Site host massmind.org, Top posters @20190216 David Van Horn, RussellMc, Neil, AB Pearce - UKRI STFC, James Cameron, Allen Mulvey, David C Brown, Denny Esterline, mike brown, Bob Blick,
* 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!