how to input during run time?

Posted on 1998-05-15
Last Modified: 2012-08-13
Hi experts:

I want to input my datasets into ChartFx 2.0 OLE Custom Control and Microsoft Chart Control to draw chart DURING run time. I can not find any help file.

thanks  a  lot
Question by:tubs
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 1450574
It should be in the box that the control came in when you bought it.

Accepted Solution

bin_huwairib earned 100 total points
ID: 1450575

If you are talking about Microsfot Char Control then use Data property to draw chart during run time, see the following code.

Private Sub Command1_Click()
 Dim Column As Integer
 Dim Row As Integer
 With Form1.MSChart1
  .chartType = VtChChartType3dBar
  .ColumnCount = 8
  .RowCount = 8
  For Column = 1 To 8
   For Row = 1 To 8
    .Column = Column
    .Row = Row
    .Data = Row * 10
   Next Row
  Next Column
 End With
End Sub

Best regards
Bin Huwairib


Author Comment

ID: 1450576
Only half questions have been answered. How about ChartFx 2.0 OLE Custom Control? Code please!!!

Expert Comment

ID: 1450577

Here is how to use ChartFX 2.0 OLE Custom Control:

Private Sub Command1_Click()
 Call Chartfx1.OpenDataEx(COD_VALUES, 2, 8)
 Chartfx1.ThisSerie = 0
 Chartfx1.Value(0) = 30
 Chartfx1.Value(1) = 20
 Chartfx1.Value(2) = 40
 Chartfx1.Value(3) = 60
 Chartfx1.Value(4) = 50
 Chartfx1.Value(5) = 15
 Chartfx1.Value(6) = 24
 Chartfx1.Value(7) = 35
 Chartfx1.ThisSerie = 1
 Chartfx1.Value(0) = 45
 Chartfx1.Value(1) = 60
 Chartfx1.Value(2) = 30
 Chartfx1.Value(3) = 60
 Chartfx1.Value(4) = 80
 Chartfx1.Value(5) = 45
 Chartfx1.Value(6) = 15
 Chartfx1.Value(7) = 45
 Call Chartfx1.CloseData(COD_VALUES)
End Sub

Bin Huwairib

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question