Solved

how to input during run time?

Posted on 1998-05-15
4
332 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

860 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