CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Symbolic naming

Threaded View

  1. #1
    Join Date
    Apr 2003
    Location
    DFW
    Posts
    2

    Symbolic naming

    does anyone know how to do this in a for loop in VB6

    'txtHI6_Ln5(TabStrip1.SelectedItem.Index - 1).Visible = True
    'txtHI6_Ln6(TabStrip1.SelectedItem.Index - 1).Visible = True
    'txtHI6_Ln7(TabStrip1.SelectedItem.Index - 1).Visible = True
    'txtHI6_Ln8(TabStrip1.SelectedItem.Index - 1).Visible = True
    'txtHI6_Ln9(TabStrip1.SelectedItem.Index - 1).Visible = True
    'txtHI6_Ln10(TabStrip1.SelectedItem.Index - 1).Visible = True
    'txtHI6_Ln11(TabStrip1.SelectedItem.Index - 1).Visible = True

    For i = 5 to 11
    txtHI6_Ln"i"(TabStrip1.SelectedItem.Index - 1).Visible = True

    ...
    next i?

    Thanks , Marc
    Last edited by aa173130; July 16th, 2008 at 03:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured