<?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; end with</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/end-with/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>VBScript Statements: Explanation of the With &#8230; End With Statement</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/vbscript-statements-explanation-of-the-with-end-with-statement/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/vbscript-statements-explanation-of-the-with-end-with-statement/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 15:10:38 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[end with]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Statements]]></category>
		<category><![CDATA[with]]></category>
		<category><![CDATA[with end with]]></category>
		<category><![CDATA[working with objects]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/vbscript-statements-explanation-of-the-with-end-with-statement/</guid>
		<description><![CDATA[The With &#8230; End With statement allows you to execute a section of code on a specific object or class that calls methods or set properties on the object from within VBScript without referencing the object directly in the code written. It is a way of simplifying your code, and very useful in large scripts. [...]]]></description>
				<content:encoded><![CDATA[<p>The <strong>With &#8230; End With</strong> statement allows you to execute a section of code on a specific object or class that calls methods or set properties on the object from within VBScript without referencing the object directly in the code written.</p>
<p>It is a way of simplifying your code, and very useful in large scripts.<br />
For example:</p>
<h6>(please note, these examples are snippets of code and will not work by themselves in an editor)</h6>
<p><span style="color: #0000ff">with objSomething<br />
     .FirstName = &#8220;Jerry&#8221;<br />
     .LastName = &#8220;Lees&#8221;<br />
     .URL = &#8220;</span><a href="http://www.gamersigs.net/"><span style="color: #0000ff">http://www.gamersigs.net</span></a><span style="color: #0000ff">&#8221;<br />
     .XBoxLiveTag = &#8220;CrashSerious&#8221;<br />
     .Email = &#8220;Not-a-chance-spammers&#8221;<br />
End with</span></p>
<p><span style="color: #0000ff"><span style="color: #000000">This would be equivalent to the following standard code:</span></span></p>
<p><span style="color: #0000ff"><span style="color: #0000ff">     objSomething.FirstName = &#8220;Jerry&#8221;<br />
     objSomething.LastName = &#8220;Lees&#8221;<br />
     objSomething.URL = &#8220;</span><a href="http://www.gamersigs.net/"><span style="color: #0000ff">http://www.gamersigs.net</span></a><span style="color: #0000ff">&#8221;<br />
     objSomething.XBoxLiveTag = &#8220;JLees&#8221;<br />
     objSomething.Email = &#8220;Not-a-chance-spammers&#8221;<br />
</span></span></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/vbscript-statements-explanation-of-the-with-end-with-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
