please help

  • Thread starter Thread starter enque
  • Start date Start date
E

enque

I want to do visible a range of textboxs.
each box is called txtm01, txtm02, txtm03 .....
I want to make a loop that makes visible and invicible
some
range of boxs.
So I tried this code, but the machine got stuck
what Im doing wrong?
''''''''''''''''''
Do
z += 1
z1 = "txtm0" & z
z2 = z1 & ".Visible = True"
Loop Until z = 1
''''''''''''''''''''''''''''''''''''
Here I want to make visible the textboxs= txtm00 and
txtm01
 
enque said:
I want to do visible a range of textboxs.
each box is called txtm01, txtm02, txtm03 .....
I want to make a loop that makes visible and invicible
some
range of boxs.
So I tried this code, but the machine got stuck
what Im doing wrong?
''''''''''''''''''
Do
z += 1
z1 = "txtm0" & z
z2 = z1 & ".Visible = True"
Loop Until z = 1
''''''''''''''''''''''''''''''''''''
Here I want to make visible the textboxs= txtm00 and
txtm01

Add the textboxes to an array and you'll be able to use a loop.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
* "enque said:
I want to do visible a range of textboxs.
each box is called txtm01, txtm02, txtm03 .....
I want to make a loop that makes visible and invicible
some
range of boxs.
So I tried this code, but the machine got stuck
what Im doing wrong?
''''''''''''''''''
Do
z += 1
z1 = "txtm0" & z
z2 = z1 & ".Visible = True"
Loop Until z = 1
''''''''''''''''''''''''''''''''''''
Here I want to make visible the textboxs= txtm00 and
txtm01

\\\
Dim atxt() As TextBox = {TextBox1, TextBox2, ..., TextBoxn}
///

Access: 'atxt(<index>)'.
 
Back
Top