Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
dynamic array using info from DB
Old 03-21-2008, 09:54 AM dynamic array using info from DB
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
What am I missing?

I think I have the logic of what I want to accomplish.. Just can't get a handle on if this is the right way. I want to take info from a db table and populate an array with it..

Here is what I have...
Code:
i=0 
Dim myinfo()
While Not ObjRS.EOF 
myinfo(i) = objRS("ppBAPNO")
i=i+1
objRS.MoveNext
Wend
objRS.Close
objConn.Close
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
 
Register now for full access!
Old 03-21-2008, 01:23 PM Re: dynamic array using info from DB
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
objRs.GetRows()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-21-2008, 02:17 PM Re: dynamic array using info from DB
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Is it really that easy....?

I'll let you know how I make out with it..

Thanks,

Chip

p.s. I did look on w3schools.! It is a little easier to find the info when you know 'what-the-flip' your looking for... You make it look easy Chris. Really P's me off... Thanks man!!
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 03-21-2008, 04:01 PM Re: dynamic array using info from DB
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
I think your first code is right, from what I've seen of that, but how do you dim the array? My guess is it's running out of slots? You can use REDIM PRESERVE but I think Chris's method is much better.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-25-2008, 04:51 PM Re: dynamic array using info from DB
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Getting bogged down with other things and will get back to this. Thanks... I will let you know when I get back to it... Me and the other person I work with are in charge of 54 projects. It is insane...
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 03-27-2008, 05:42 AM Re: dynamic array using info from DB
Novice Talker

Posts: 9
Trades: 0
Thats guys I was looking at a very similar issue.
Azazel28 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to dynamic array using info from DB
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.55890 seconds with 12 queries