Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - error with const declaration - urgent, pl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

error with const declaration - urgent, pl

 Post Reply Post Reply
Author
simflex View Drop Down
Groupie
Groupie
Avatar

Joined: 10 November 2002
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote simflex Quote  Post ReplyReply Direct Link To This Post Topic: error with const declaration - urgent, pl
    Posted: 10 September 2004 at 9:11am

If I add another const to the existing 2, I get "subscript out of range" error

However, if I disable it,
lastID = rows(UBound(rows,2),COL_BLKID, I get no errors but I get no result either.

What I am trying to do is get the first number that appears on our result set and the last one there.

So far it isn't working.

Any urgent help would be greatly appreciated.

Just in case this might help, here is the query I am using:

   rs = "SELECT Full_Name, userid,from, To FROM mytable where ID =" & ID & " order by userid"

 

' Assign symbolic names to the columns in that array
CONST COL_NAME = 0
CONST COL_BLKID = 1


' How many rows are there?
BlockCount = UBound(rows,2) + 1

' full_name should be same in all rows, so get it from first row:
full_name = rows(0,COL_NAME)
' first id is in first row:
firstID = rows(0,COL_BLKID)
' last id is in last row:
lastID = rows(UBound(rows,2),COL_BLKID)

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.