Print Page | Close Window

Vars Instead of Constants

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17432
Printed Date: 29 March 2026 at 5:15pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Vars Instead of Constants
Posted By: aliasbdi
Subject: Vars Instead of Constants
Date 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?




Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: aliasbdi
Date Posted: 06 December 2005 at 11:08am
Well when i change the constants to variables the entire application errors.


Posted By: WebWiz-Bruce
Date Posted: 06 December 2005 at 11:34am
You may need to Dim the variables at the top of the file:-

Dim myVar
Dim myVar2


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: aliasbdi
Date 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?



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