Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 10th, 2003, 06:21 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 3 dimensional array with MSChart

I want to use a 3 dimensional array with MSChart to add multiple lines the chart. My project worked fine until I added the 3rd dimension to the array.

Here is part of the code. I hope it is enough.


ReDim chrtArray(1 To 2, 1 To lGreatestValue, 1 To 2)
MSChart1.ShowLegend = True
MSChart1.chartType = VtChChartType2dLine
'
'Chart X and Y axis titles
'
MSChart1.Plot.Axis(VtChAxisIdX).AxisTitle.Text = cboDateType.Text
MSChart1.Plot.Axis(VtChAxisIdY).AxisTitle.Text = ""
'
'Load the array with 0s with correct # of rows
'
For X = 1 To lGreatestValue
  chrtArray(1, X, 1) = 0
  chrtArray(1, X, 2) = X
Next X
'
'Load the array with data
'
For X = 1 To rstCategories.RecordCount
  chrtArray(1, rstCategories!datetype, 1) = rstCategories!Calls
  rstCategories.MoveNext
Next X
'
'Attach the array of data to MS-CHART
'
With MSChart1
    .ChartData = chrtArray :(:(:( I think the problem is here :(:(:(
    .ColumnCount = 1
    .ColumnLabelCount = 1
    .Column = 1
    .ColumnLabel = "Call Volume"

Reply With Quote
  #2 (permalink)  
Old July 11th, 2003, 04:47 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm SO STUPID!

Nevermind:D

Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using 2 dimensional array Abraham EJB 0 July 17th, 2007 10:27 AM
two-dimensional array Lizane Java Basics 4 May 23rd, 2007 10:35 AM
2 dimensional array trangd Beginning PHP 0 August 18th, 2005 01:37 AM
2 dimensional array venterjo General .NET 2 January 23rd, 2005 09:04 AM
Searching a two dimensional array Dinesh22 VB.NET 2002/2003 Basics 1 January 13th, 2004 03:16 PM



All times are GMT -4. The time now is 05:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.