E Ebic Member Licensed User Longtime User Mar 11, 2011 #1 Hi, i have this problem: 1 Sub Process_Globals 2 Type RecordSale (Id As Int, Descr As String, Default As Int) 3 End Sub 4 5 Sub GloBals 6 Dim TbSale(0) As RecordSale 7 End Sub 8 9 Sub Procedure 10 Dim I as int 11 12 For i = 0 to 5 13 Dim TbSale(I) as RecordSale 14 ......... other 15 ......... code 16 next 17 18 End Sub Wy don't work at line 13 ? the error is : ArrayIndexOutOfBounsException I wont to work with the table with variable elements. How can i do ? very thanks.
Hi, i have this problem: 1 Sub Process_Globals 2 Type RecordSale (Id As Int, Descr As String, Default As Int) 3 End Sub 4 5 Sub GloBals 6 Dim TbSale(0) As RecordSale 7 End Sub 8 9 Sub Procedure 10 Dim I as int 11 12 For i = 0 to 5 13 Dim TbSale(I) as RecordSale 14 ......... other 15 ......... code 16 next 17 18 End Sub Wy don't work at line 13 ? the error is : ArrayIndexOutOfBounsException I wont to work with the table with variable elements. How can i do ? very thanks.
agraham Expert Licensed User Longtime User Mar 11, 2011 #2 Isn't this a Basic4android question? I can't see any error at line 13. Code: For i = 0 To 5 Dim TbSale(I) As RecordSale Log(i) Next Works fine, although quite why you would want to do this is a different matter. Upvote 0
Isn't this a Basic4android question? I can't see any error at line 13. Code: For i = 0 To 5 Dim TbSale(I) As RecordSale Log(i) Next Works fine, although quite why you would want to do this is a different matter.
E Ebic Member Licensed User Longtime User Mar 11, 2011 #3 agraham said: Isn't this a Basic4android question? I can't see any error at line 13. Code: For i = 0 To 5 Dim TbSale(I) As RecordSale Log(i) Next Works fine, although quite why you would want to do this is a different matter. Click to expand... :sign0013: Sorry i've confused the thread. It's a Basic4android question. Thanks. Upvote 0
agraham said: Isn't this a Basic4android question? I can't see any error at line 13. Code: For i = 0 To 5 Dim TbSale(I) As RecordSale Log(i) Next Works fine, although quite why you would want to do this is a different matter. Click to expand... :sign0013: Sorry i've confused the thread. It's a Basic4android question. Thanks.