<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Why using const?</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Why using const?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 05:21:27 +0000</pubDate>
  <lastBuildDate>Thu, 13 Dec 2007 13:53:35 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=25005</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Why using const? : again: faster reply than the fire...]]></title>
   <link>https://forums.webwiz.net/why-using-const_topic25005_post130069.html#130069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=26292">efscl</a><br /><strong>Subject:</strong> 25005<br /><strong>Posted:</strong> 13&nbsp;December&nbsp;2007 at 1:53pm<br /><br />again: faster reply than the fire departement allows ;O)<br><br>thx n have a great day<br>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:53:35 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/why-using-const_topic25005_post130069.html#130069</guid>
  </item> 
  <item>
   <title><![CDATA[Why using const? : The only reason is for clean programming...]]></title>
   <link>https://forums.webwiz.net/why-using-const_topic25005_post130068.html#130068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 25005<br /><strong>Posted:</strong> 13&nbsp;December&nbsp;2007 at 1:45pm<br /><br />The only reason is for clean programming and because it's meant to give better performance.<br><br>So that the variable can be assigned different values just declare the variable using a Dim line and then remove the Const.<br>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:45:22 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/why-using-const_topic25005_post130068.html#130068</guid>
  </item> 
  <item>
   <title><![CDATA[Why using const? :  Hi Borg, Hi Senior ASP Programmers,in...]]></title>
   <link>https://forums.webwiz.net/why-using-const_topic25005_post130064.html#130064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=26292">efscl</a><br /><strong>Subject:</strong> 25005<br /><strong>Posted:</strong> 13&nbsp;December&nbsp;2007 at 1:32pm<br /><br />Hi Borg, Hi Senior ASP Programmers,<br><br>in the forum you are using "const" at different places. <br><br>1.) I know this is a "clean" programmning. <br>2.) Sometimes its written that constants have a better performance than variables<br>3.) if you would that a variable never will change: use constant<br><br>Problem: <br>I am using one test server and one live server with "the same" code.&nbsp; So i have to change for example in functions_member_API.asp the <br><br>c<font face="Courier New, Courier, mono">onst strMemberAPILoginURL = "http://test.liveserver.com/login.asp"<br>to<br></font>c<font face="Courier New, Courier, mono">onst strMemberAPILoginURL = "http://www.liveserver.com/login.asp"</font><br><font face="Courier New, Courier, mono"><br><font face="Arial, Helvetica, sans-serif">You writting in the comment above the code that i have to use the full URL "http://..." and not&nbsp; "/login.asp".<br><br>But manually change everytime is not a good choice.<br><br><font face="Courier New, Courier, mono">Const s</font></font></font><font face="Courier New, Courier, mono">trMemberAPILoginURL = "http://" &amp; Req.SV("HTTP_HOST") &amp; "/login.asp"</font><br><br>is not working with Const. So i have to use a variable.<br><br>Ok - now the question <img src="https://forums.webwiz.net/smileys/smiley1.gif" border="0" alt="Smile" />:<br>Is there any other important reason for using a constant instead of a variable?<br><br>thx all for your feedback<br>Sebastian<br><br>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:32:17 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/why-using-const_topic25005_post130064.html#130064</guid>
  </item> 
 </channel>
</rss>