Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic tablenode.addrow (Read 1772 times)
digit
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 23rd, 2008
tablenode.addrow
Jul 24th, 2008 at 1:23am
Print Post  
       'Dim tableNode As TableNode = New         Dim tableNode As TableNode = New TableNode(Diagram)
       tableNode.RedimTable(0, 0)
       Dim rowPosition As Integer = tableNode.AddRow()
       tableNode.Rows(rowPosition).Header = True
       tableNode.Rows(rowPosition).Expanded = True
       tableNode(0, rowPosition).Text = "Conditions"

Bug is on the last line of code - index out of bounds
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: tablenode.addrow
Reply #1 - Jul 24th, 2008 at 8:53am
Print Post  
You have zero columns in the table, so the exception happens because of the first index, and not from rowPosition. Change the first RedimTable argument to 1 and this should work.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint