Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Vars Instead of Constants
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Vars Instead of Constants

 Post Reply Post Reply
Author
aliasbdi View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote aliasbdi Quote  Post ReplyReply Direct Link To This Post Topic: Vars Instead of Constants
    Posted: 02 December 2005 at 5:05pm

I am putting the text editor on a few different forms and want them to look different.  But I'll have to alter some of the constants.  Is there an alternative to doing this since constants cannot be dynamically set?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2005 at 11:04am
You could change them from constents, or you could change the include files to link to different configuration files.
Back to Top
aliasbdi View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote aliasbdi Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2005 at 11:08am
Well when i change the constants to variables the entire application errors.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2005 at 11:34am
You may need to Dim the variables at the top of the file:-

Dim myVar
Dim myVar2
Back to Top
aliasbdi View Drop Down
Newbie
Newbie


Joined: 02 December 2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote aliasbdi Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2005 at 10:09am
Well, I'm having some trouble.  I am wanting to set all of the variables on the form page which includes the RTE (like the default.asp page that is in the package).

In other words, on my forms I have this code with tells the RTE what to show and do and then includes the RTE.  Here is the code:

<% 
DIM uploadPATHimg
strTextAreaName = "emailModCONTENT"
strFormName = "emailerFROM"
uploadPATHimg = "/pics/scemailer/db/"&Year(date)&"/"
%>
<!--#include virtual="/econtrol/v10/_common/sys/HTMLeditor/RTE_editor_inc.asp" -->

And since the image upload page does not set the variable itself, then I have to use a constant. And then I'm back to where I started.  Any suggstions?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 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 Policy

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 unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

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