•
•
•
•
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
![]() |
•
•
Join Date: Mar 2007
Posts: 22
Reputation:
Rep Power: 2
Solved Threads: 0
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...
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...
•
•
Join Date: Mar 2007
Posts: 22
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
- number of times each number in array occurs? (C)
- Array and File Help (C++)
- read each line of file (C)
- Trying to creating an array from a text file (C++)
- appending and subtracting a number in an array (C++)
- Dynamic Array, Writing to CSV, Floating Point ?'s (C)
- array program, dont know where to even begin! (C)
- How do I create a program using an Array ? (C++)
Other Threads in the ASP Forum
- Previous Thread: Forms not showing or something
- Next Thread: how can i display the ms word document in asp page?


Linear Mode