Microsoft® JScript String Object |
Language Reference Version 1 |
Allows manipulation and formatting of text strings and determination and location of substrings within strings.
StringObj[.method]
"String Literal"[.method]
String objects can be created implicitly using string literals. String objects created in this fashion (referred to as standard strings) are treated differently than String objects created using the new operator. All string literals share a common, global string object. So, if a property is added to a string literal, it is available to all standard string objects:var alpha, beta alpha = "This is a string" beta = "This is also a string" alpha.test = 10In this example, test is now also defined for beta and all future string literals. In the next example, 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 = 10In 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 String objects and string literals are handled differently.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/jscript/htm/js604.htm, 3KB, , updated: 2008/1/31 16:06, local time: 2024/11/22 12:02,
3.148.106.49:LOG IN
|
©2024 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://techref.massmind.org/Techref/inet/iis/jscript/htm/js604.htm"> String Object</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.