|
-
June 23rd, 2003, 12:04 AM
#1
Controll Array - Pls. Help asap. Very erratic problem
Hi,
I agree that the problem i am facing is erratic and most of you may find it funny also but the fact is that i am facing this problem and not able to find a solution to this problem.
Problem Description:
I have got a controll array of text boxes having say 10 elements.
All of these elements are created at design time.
I have coded some lines on the lost focus event of theses text boxes and i m using the same index in the code which i recieve as a parameter to the lost focus method.
Now the problem is that this problem does not occurs every time.Most of the time it runs fine but some times i get an error message stating that the controll array element does not exists.
It is very strange because i my self had added this element at design time.Moreover on FormLoad I have populated the very same element of the textbox.
Details of error message i recieve are as follows:
Error No. = 340
Error Description = Controll Array Element 'Element No' doesn't exists.
So you see this problem is very hasty.
Actually I have not been able to pin point where the problem is, because this does not occurs every time and occurs randomly on any element of the controll array.
So if you have ever faced this problem and were able to rectify it then pls. do write in something.
Regards.
Vivek Chopra.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|