Active Users Count
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=20876
Printed Date: 11 April 2026 at 10:08am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Active Users Count
Posted By: lostcontrol
Subject: Active Users Count
Date Posted: 01 August 2006 at 2:51pm
Hello,
I used this code
For intArrayCountForumUsers = 1 To UBound(Application("saryAppActiveUsersTable"), 2) xCount=xCount+1 Next Response.Write xcount
to display anywhere on my site the number of users on the forum.
However, if no user is in the forum it will generate an error in the Ubound. How can i validate Application("saryAppActiveUsersTable") before performing the ubound? I tried isempty() and isnull() but did not work.
Many thanks.
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 01 August 2006 at 5:16pm
Try:-
If isArray(Application("saryAppActiveUsersTable")) Then
End If
------------- 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: lostcontrol
Date Posted: 01 August 2006 at 5:37pm
Posted By: Scotty32
Date Posted: 01 August 2006 at 7:26pm
wouldnt it be easier to just do:
If isArray(Application("saryAppActiveUsersTable")) Then intCount = UBound(Application("saryAppActiveUsersTable"), 2) + 1
rather than going thru the loop?
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
|