How to take part in discussions on other sites? (e.g. the LiveJournal)
Alternative for Me.Controls()
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Visual Basic Programming > Alternative for Me.Controls() 11 February 2005 02:15:13

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Alternative for Me.Controls()

Guest 11 February 2005 02:15:13
 I wrote some code for a Rockwell automation app where I could use
Me.Controls(). For example,

Me.Controls("lblP" & strBufferID).Visibl­e = True

for a group of labels named lblPx, where x is 1-30.

However, I am writing code in a newer Rockwell VBA and I can't get the
Me.Controls() to work. Is there an alternative way to do this? What
libraries, ocx's, etc. do I need in my references and/or components to
be able to do this? or could it be a limitation with the class for
this specific VBA?

Roger.

Add comment
CГёГђГ«rX 10 February 2005 10:19:55 permanent link ]
 hi dere ...
try this out ..

For Each Control In UserForm1.Controls
If Left(Control.Name, 4) = "lblP" then
Control.Visible = False
End If
Next

hope this'll help ya out ...

Add comment
Shell 11 February 2005 02:15:13 permanent link ]
 In responce to the post:
On 9 Feb 2005 23:19:55 -0800, "CГёГђГ«rX" <mr.xcoder@gmail.co­m>
stated...and I replied:
hi dere ...>try this out ..>
For Each Control In UserForm1.Controls>­ If Left(Control.Name, 4) = "lblP" then> Control.Visible = False> End If>Next>
hope this'll help ya out ...

That should be...

For Each Control In Me.Controls

Shell
-
http://drshell.home­.mindspring.com/
Into computers since 1972.
WARNING! Information and e-mail addresses contained herein, are for personal use only. By entering this site, you agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to: allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via direct mail, electronic mail, or by telephone. Violators will be dealt with accordingly.
-
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Visual Basic Programming > Alternative for Me.Controls() 11 February 2005 02:15:13

see also:
deleting a module?
new module review : tail -f
Mail setup
пройди тесты:
see also:
Photo DVD Maker New Website Unveiled…
How to make a Christmas photo…
Unable to Print Embedded Pictures in…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .