 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The VBScript Network and Systems Administrator&#039;s Cafe &#187; ASCII</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/ascii/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator</link>
	<description></description>
	<lastBuildDate>Tue, 11 Oct 2011 18:36:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Using special characters in VBScript strings</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/special-characters-in-vbscript-strings/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/special-characters-in-vbscript-strings/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 15:21:52 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[ASCII]]></category>
		<category><![CDATA[Special Characters]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[String manipulation]]></category>
		<category><![CDATA[strings]]></category>
		<category><![CDATA[VBScipt]]></category>
		<category><![CDATA[working with variables]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=107</guid>
		<description><![CDATA[I just realized I&#8217;ve been using Visual Basic String constants in my scripts with little to no explanation. We&#8217;ll rectify that situation right now! When dealing with strings in VBScript, you occasionally need to add formatting characters to a string, so that when it is displayed on the screen or in a file it looks [...]]]></description>
				<content:encoded><![CDATA[<p>I just realized I&#8217;ve been using Visual Basic String constants in my scripts with little to no explanation. We&#8217;ll rectify that situation right now! <img src='http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>When dealing with strings in VBScript, you occasionally need to add formatting characters to a string, so that when it is displayed on the screen or in a file it looks correct. If you know your ASCII chart you can certainly preform this with a <em>&#8220;&amp; chr(X) &amp;&#8221;.</em>However, if you don&#8217;t know what ASCII value a tab is (it&#8217;s 9) then you can simply use Visual Basic&#8217;s string constants in your scripts and have the added benefit if making it easier to read!</p>
<p>The constants and their meanings are listed below:</p>
<table border="0">
<tbody>
<tr>
<td>VBTab</td>
<td>A Tab character [Chr(9)]</td>
</tr>
<tr>
<td>VBCr</td>
<td>A carriage return [Chr(13)]</td>
</tr>
<tr>
<td>VBCrLf</td>
<td>A carriage return and line feed [Chr(13) + Chr(10)]</td>
</tr>
<tr>
<td>vbBack</td>
<td>A backspace character [Chr(8)]</td>
</tr>
<tr>
<td>vbLf</td>
<td>A linefeed [Chr(10)]</td>
</tr>
<tr>
<td>vbNewLine</td>
<td>A platform-specific new line character, either [Chr(13) + Chr(10)] or [Chr(13)]</td>
</tr>
<tr>
<td>vbNullChar</td>
<td>A null character of value 0 [Chr(0)]</td>
</tr>
<tr>
<td>vbNullString</td>
<td>A string of value 0 [no Chr code]; note that this is not the same as &#8220;&#8221;</td>
</tr>
</tbody>
</table>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/special-characters-in-vbscript-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
