CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Posts
    1

    Get input into control arrays

    Hey there,

    My problem is when I create my control array I can seem to get the value of a variable into the control array. I'm kinda stuck and need help quickly.
    thankx


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Get input into control arrays

    "control array "
    ie:
    text1(0),text1(1) and so on?(Hope I understand it correctly...)

    then -for example:
    'a form, 1 command button, 2 text boxes which are array of controls
    Private Sub Command1_click()
    Dim strMystr as String
    strMystr= "This is for second element of my array of controls"
    Text1(0).text = "This is text of first element of my array of controls"
    Text1(1).text = strMystr
    End Sub


    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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