Hi Borg, Hi Senior ASP Programmers,
in the forum you are using "const" at different places.
1.) I know this is a "clean" programmning.
2.) Sometimes its written that constants have a better performance than variables
3.) if you would that a variable never will change: use constant
Problem:
I am using one test server and one live server with "the same" code. So i have to change for example in functions_member_API.asp the
c
onst strMemberAPILoginURL = "http://test.liveserver.com/login.asp"
to
c
onst strMemberAPILoginURL = "http://www.liveserver.com/login.asp"
You writting in the comment above the code that i have to use the full URL "http://..." and not "/login.asp".
But manually change everytime is not a good choice.
Const strMemberAPILoginURL = "http://" & Req.SV("HTTP_HOST") & "/login.asp"is not working with Const. So i have to use a variable.
Ok - now the question

:
Is there any other important reason for using a constant instead of a variable?
thx all for your feedback
Sebastian