Adding data using asErrorBar.AddErrorBar method

TeeChart for ActiveX, COM and ASP
Post Reply
Dylan Ho
Newbie
Newbie
Posts: 1
Joined: Wed Apr 25, 2007 12:00 am

Adding data using asErrorBar.AddErrorBar method

Post by Dylan Ho » Fri May 18, 2007 9:54 am

Hi,

I had problems adding data points for error bars using tchart1.series(1).asErrorBar.AddErrorBar(xvalue,yvalue, error,string,color). it returns a <ComException> unhandled which I cannot comprehend "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))".

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 18, 2007 10:35 am

Hi Dylan Ho,

Have you tried using:

Code: Select all

tchart1.series(1).asErrorBar.AddErrorBar xvalue,yvalue, error,string,color
instead? If this works is because Add methods with parenthesis return an integer which expects to be assigned to a variable.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply