<?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>ASP变量 &#8211; 九创科技</title>
	<atom:link href="https://www.3code.cn/tag/aspbl-tag/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.3code.cn</link>
	<description>Wordpress外贸企业主题, Wp企业主题, wordpress企业主题, wordpress主题定制, WORDPRESS外贸网站建设SEO</description>
	<lastBuildDate>Tue, 03 Nov 2009 03:00:44 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>ASP:dim，static和public，private的区别</title>
		<link>https://www.3code.cn/asp-dim-static-public-private/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Tue, 03 Nov 2009 03:00:44 +0000</pubDate>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[ASP变量]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=142</guid>

					<description><![CDATA[Public和Private一般用于定义全局变量，也可以在类中使用。前者定义的是公共变量]]></description>
										<content:encoded><![CDATA[<p><span><strong>ASP:dim，static和public，private的区别</strong></span></p>
<p><span>Public和Private一般用于定义全局变量，也可以在类中使用。前者定义的是公共变量，如果在一个模块当中使用，那么整个应用程序都能使用它所定义的变量，如果在类中使用，那么它就是一个共有属性。而后者定义的是私有变量，如果在一个模块中使用，那么只有这个模块才能访问到它所定义的变量，如果在类中使用，那么它就是一个私有属性。</p>
<p>Dim和Static一般在过程(Sub或者Function)内部使用，它们所定义的变量都只能在过程内部被访问。区别在于：前者定义的是动态变量，过程一旦结束，该变量所占有的内存就会被系统回收，而变量所储存的数据就会被破坏。后者定义的是静态变量，这意味着在过程结束后这个变量所占有的内存不会被回收，数据当然也不会被破坏了，这样当你下次再调用该过程的时候，数据就依然存在。<br />
相比之下，Public和Static都有保留数据不被破坏的作用，但是，前者适合于那些所有过程都可能访问到的变量，而后者则把变量的作用范围缩在最小（只在该过程内能被访问）。</p>
<p>dim是Data Interpretation Module的缩写.即数据解释模型</span></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
