User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 397,600 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,704 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1110 | Replies: 2 | Solved
Reply
Join Date: Mar 2007
Posts: 22
Reputation: enggars is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
enggars enggars is offline Offline
Newbie Poster

Help joining array, but still read as number

  #1  
Apr 12th, 2007
Hello.
I have array that i deffered from my database.

For i=0 to 4
Point(i)=Cint(Rs("Point"))
Name(i)=Rs("Name")
rs.MoveNext
next

The result is giving me :
Point(0)
Point(1)
Point(2)
Point(3)

Name(0)
Name(1)
Name(2)
Name(3)

I would like to built a chart from it.
The chart goes this way:

ShowChart Array(Point(0),Point(1),Point(2),Point(3),Point(4)), Array(Name(0),Name(1),Name(2),Name(3),Name(4))

That works.
But i want to simplify the code.

I tried to use the join(Point,",") and join(Name,",") , but it give us string. Which makes the chart doesnt work.

Is there any joining function in ASP but still give us a numeric value?
Or anybody can show me to simplify the above code?

Thanks for the helps...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: London
Posts: 114
Reputation: davidcairns is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
davidcairns davidcairns is offline Offline
Junior Poster

Re: joining array, but still read as number

  #2  
Apr 12th, 2007
The join function returns a string by definition so that isn't the function your looking for. As for a simpler way of doing it, Point and Name are already arrays, so there's no point in doing this the long way round, instead try someting like this

ShowChart Point, Name
Reply With Quote  
Join Date: Mar 2007
Posts: 22
Reputation: enggars is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
enggars enggars is offline Offline
Newbie Poster

Re: joining array, but still read as number

  #3  
Apr 12th, 2007
Originally Posted by davidcairns View Post
The join function returns a string by definition so that isn't the function your looking for. As for a simpler way of doing it, Point and Name are already arrays, so there's no point in doing this the long way round, instead try someting like this

ShowChart Point, Name


Okay...
That simply works.

Thanks dave. ;D
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 6:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC