Solved

how to input during run time?

Posted on 1998-05-15
4
329 Views
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
0
Comment
Question by:tubs
  • 2
4 Comments
 
LVL 4

Expert Comment

by:zsi
ID: 1450574
It should be in the box that the control came in when you bought it.
0
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 100 total points
ID: 1450575
tubs,

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

Example
=======
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

0
 

Author Comment

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

Expert Comment

by:bin_huwairib
ID: 1450577
tubs,

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
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now