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...

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 [B]ShowChart[/B] Point, Name

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 [B]ShowChart[/B] Point, Name

Okay...
That simply works.

Thanks dave. ;D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.