Print Page | Close Window

Question about intMaxResults variable

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=23281
Printed Date: 07 April 2026 at 6:22pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Question about intMaxResults variable
Posted By: kiklop
Subject: Question about intMaxResults variable
Date Posted: 09 May 2007 at 4:25pm
I'm curious about declaring the intMaxResults value and hope someone can help me a bit here.

I use the default intMaxResults value of 500 for all my (sub)forums. However, we do have one subforum that i would like to increase this limit, but since i don't want to compromise the whole forum performance i wonder what's the best way of doing it.

Since intMaxResults is constant i can't use something like

If intForumID=X then
intMaxResults=xxx
Else
intMaxResults=xx
End if.

But if i change

Cont intMaxResults=500
to something like

Dim intMaxResults
intMaxResults= 500 i can use If statement which does work. Now the question is; can i change "Const" declaration to dim intMaxResults without causing any problem?

Thank you !

-------------
http://www.dyxum.com" rel="nofollow - dyxum.com



Replies:
Posted By: WebWiz-Bruce
Date Posted: 09 May 2007 at 5:15pm
Yes you would need to change the const to a dim if you want to dynamically assign a value to it.

-------------
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: kiklop
Date Posted: 09 May 2007 at 5:26pm
Thanks boRg; is there any drawback for doing this?

-------------
http://www.dyxum.com" rel="nofollow - dyxum.com


Posted By: WebWiz-Bruce
Date Posted: 09 May 2007 at 7:01pm
Only performance wize if on a slow network or using Access

-------------
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



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