Accessing MSChart DataGrid.GetData function from client-side VBScript 
Author Message
 Accessing MSChart DataGrid.GetData function from client-side VBScript

I have spent hours trying to get this to work. This is from an HTML file
that displays an MSChart in an IE browser. When someone clicks on a data
point on the chart, it is supposed to read the value of the data point and
pop up a window telling you what it is. Here is the simple code:

Private Sub MSChart_PointSelected(Series, DataPoint, MouseFlags, Cancel)

  MSChart.DataGrid.GetData DataPoint, Series, GetData, nullFlag
  Alert GetData

End Sub

The problem is I get this when you click on a data point:

Error: Type mismatch: 'MSChart.DataGrid.GetData'

Looking at MSDN, the DataGrid.GetData function accepts the DataPoint and
Series values (as integers), and returns GetData (as double) and nullFlag
(as integer).

Doing some testing, it seems the problem is with GetData (the double). No
matter what I do, I cannot get it to return a value without a type mismatch
error. I tried these with no luck:

  GetData = cDbl(0)
  MSChart.DataGrid.GetData DataPoint, Series, GetData, nullFlag

and

  MSChart.DataGrid.GetData DataPoint, Series, cDbl(GetData), nullFlag

Does anyone have any suggestions at all? I'm at a total loss.



Sun, 17 Jul 2005 07:01:22 GMT  
 Accessing MSChart DataGrid.GetData function from client-side VBScript
multipost - see replies in microsoft.public.inetexplorer.scripting

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US



Sun, 17 Jul 2005 08:05:23 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Accessing MSChart DataGrid.GetData function from client-side VBScript

2. Need examples of recordset from stored procedure with parame

3. Number of postings to comp.lang.* newsgroups.

4. ? Get rid of VBScript title in msgbox (client Side VBScript)

5. Calling client-side javascript function from server-side vbscript

6. string to integer

7. ASP, Word, Client Side vbScript

8. Send an email using MAPI object (client side VBScript)

9. Client side VBScript for form validation in an asp page

10. Progreess Bar in Client-Side VBScript

11. problem with vbscript client-side in ie

12. Future of client side VBScript?

 

 
Powered by phpBB® Forum Software