Hi there,
hope someone can help, haven't been able to solve this...
I'm trying to remove a control from a control array, dynamically within the code.
I have a form with 3 controls on it, called CtlLine(0),(1) and (2). How can I remove the second element?
Unload CtlLine(1) removes it from the screen, but my code still trips up when I do some validation as the code thinks there is still an element CtlLine(1) as it still appears in the Me.Controls collection. I can write around this using a "check control exists" function everytime, but this is pretty longwinded.
Is there a way to remove a control completely from control array? Me.Controls.Remove CtlLine(1) doesn't work...
Thanks
hope someone can help, haven't been able to solve this...
I'm trying to remove a control from a control array, dynamically within the code.
I have a form with 3 controls on it, called CtlLine(0),(1) and (2). How can I remove the second element?
Unload CtlLine(1) removes it from the screen, but my code still trips up when I do some validation as the code thinks there is still an element CtlLine(1) as it still appears in the Me.Controls collection. I can write around this using a "check control exists" function everytime, but this is pretty longwinded.
Is there a way to remove a control completely from control array? Me.Controls.Remove CtlLine(1) doesn't work...
Thanks