Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - how does strTxt work?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how does strTxt work?

 Post Reply Post Reply
Author
Angela French View Drop Down
Newbie
Newbie


Joined: 22 March 2002
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote Angela French Quote  Post ReplyReply Direct Link To This Post Topic: how does strTxt work?
    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.

 

 



Edited by Angela French
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2003 at 3:31pm
They are constants set in the Language Files.
Back to Top
Angela French View Drop Down
Newbie
Newbie


Joined: 22 March 2002
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote Angela French Quote  Post ReplyReply Direct Link To This Post 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?

 

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Angela French View Drop Down
Newbie
Newbie


Joined: 22 March 2002
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote Angela French Quote  Post ReplyReply Direct Link To This Post 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. ?

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Angela French View Drop Down
Newbie
Newbie


Joined: 22 March 2002
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote Angela French Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2003 at 10:21am

I hadn't thought of language translations.

 

Thanks.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.