Delete multiple custom axis

TeeChart for ActiveX, COM and ASP
Post Reply
hugh
Newbie
Newbie
Posts: 33
Joined: Tue Jan 15, 2008 12:00 am

Delete multiple custom axis

Post by hugh » Wed Mar 26, 2008 10:52 pm

Hi out there,

Scenario: I did create Custom1 to Custom5 axes and want to delete Custom3 and Custom 4 - programatically - h :oops: ow do I do that as I cannot use the Custom_axis id's as they change once the first custom axis (Custom3) is deleted. Any ideas?

Thanks,

hugh...

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

Post by Narcís » Thu Mar 27, 2008 9:48 am

Hi hugh,

You can do it downwards, for example:

Code: Select all

Private Sub Command1_Click()
    TChart1.Axis.RemoveCustom 3
    TChart1.Axis.RemoveCustom 2
End Sub
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