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

Posts: 477
Name: Chip Johns
Location: Savannah Georgia
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!
 
When You Register, These Ads Go Away!
     
Old 03-21-2008, 12:23 PM Re: dynamic array using info from DB
chrishirst's Avatar
Super Moderator

Posts: 12,763
Location: Blackpool. UK
objRs.GetRows()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-21-2008, 01:17 PM Re: dynamic array using info from DB
ChipJohns's Avatar
I don't know! Do you?

Posts: 477
Name: Chip Johns
Location: Savannah Georgia
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, 03:01 PM Re: dynamic array using info from DB
Learning Newbie's Avatar
Moderator

Latest Blog Post:
What’s He Looking At?
Posts: 4,983
Name: John Alexander
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.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-25-2008, 03:51 PM Re: dynamic array using info from DB
ChipJohns's Avatar
I don't know! Do you?

Posts: 477
Name: Chip Johns
Location: Savannah Georgia
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, 04:42 AM Re: dynamic array using info from DB
Novice Talker

Posts: 9
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

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

vB 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.13071 seconds with 13 queries