Hi Folks,
I have a program with a single control array element (a command button) and other elements of the array that are created dynamically with the Load command.
I am seeing some unusual behavior with element zero. It seems that sometimes this element exist and sometimes it doesn't. I can always see the button, but occasionally get an "Error 340 (Control array element '0' does not exist)".
This behavior seems strange. The button exists. I can click the button and see an index of '0' when I watch the click event execute. The program fails when I try to execute the setfocus method on the button with index zero. A watch of the control array reveals that an element with index zero is only sometimes in the array... strange. I haven't removed the button through code (and it is still visible).
Any ideas?
Ryan
I have a program with a single control array element (a command button) and other elements of the array that are created dynamically with the Load command.
I am seeing some unusual behavior with element zero. It seems that sometimes this element exist and sometimes it doesn't. I can always see the button, but occasionally get an "Error 340 (Control array element '0' does not exist)".
This behavior seems strange. The button exists. I can click the button and see an index of '0' when I watch the click event execute. The program fails when I try to execute the setfocus method on the button with index zero. A watch of the control array reveals that an element with index zero is only sometimes in the array... strange. I haven't removed the button through code (and it is still visible).
Any ideas?
Ryan