| Author: Meetu Choudhary 13 Oct 2008 | Member Level: Gold | Rating: Points: 3 |
please make use of new keyword and then see the results if it doesn't work out let me know
-- Thanks and Regards Meetu Choudhary - please rate the post if it helps you
|
| Author: senthil 13 Oct 2008 | Member Level: Gold | Rating: Points: 2 |
lablearray(i).Text = "xyz"
This code modify to below code:
lablearray(i)= "xyz"
Hope this is help for U...
|
| Author: Saravanan S 13 Oct 2008 | Member Level: Silver | Rating: Points: 4 |
Hi Nilesh, you can initialize the lable before accesssing the label. So you can changes your code as follows.
Dim i As Integer Dim lablearray(5) As Label For i = 0 To 5 lablearray(i) = New Label() lablearray(i).Text = "xyz" Next
Thanks & Regards Saravanan.S
|