Print Page | Close Window

how does strTxt work?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4771
Printed Date: 02 April 2026 at 1:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: how does strTxt work?
Posted By: Angela French
Subject: how does strTxt work?
Date Posted: 05 August 2003 at 3:04pm

How does strTxt work to create strings that written to the page?

How does strTxtWhatIsThis  turn into What Is This  ?

I looked for a function to do this but could not find it.

 

 




Replies:
Posted By: michael
Date Posted: 05 August 2003 at 3:31pm
They are constants set in the Language Files.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Angela French
Date Posted: 05 August 2003 at 3:50pm

Thank you for helping me understand this.  Looking into the code is very interesting as I've only had about a year of aSP experience and it was all learned on my own.  So it is interesting to see these different coding practices.

Question though - how are these pages brought into the pages that use them?  I would have thought through include files, but I'm looking at one that didn't seem to do that.

For instance: in default.asp  there is the strTxtTheTimeNowIs that is used to write the time label to the top of the page.  This constant is set in language_file_inc.asp, and yet I don't see that file called into default.asp page.  How does default.asp page get hold of those variables to use?

 



Posted By: michael
Date Posted: 05 August 2003 at 5:12pm
The default.asp includes the common.asp and the common.asp includes the language_file_inc.asp
If this practice is really necessary or not is up to discussion but this way you have to include one "important" file which includes all other files that might be needed. Either way is ok to do I guess.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Angela French
Date Posted: 05 August 2003 at 5:45pm

Thanks.

Why so much use of variables as opposed to just writing out the actual text in the response.write. ?



Posted By: michael
Date Posted: 05 August 2003 at 7:58pm
It makes it much easier to translate the forum into different languages or change the wording on certain things.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Angela French
Date Posted: 06 August 2003 at 10:21am

I hadn't thought of language translations.

 

Thanks.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net