iOS Question How do I get a list of all the controls in a view?

Discussion in 'iOS Questions' started by davepamn, Feb 24, 2015.

  1. davepamn

    davepamn Active Member Licensed User

    I have a group of dynamic picker controls and textboxes. How do I get a list of these controls to obtain their values?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. davepamn

    davepamn Active Member Licensed User

    I read the article.

    I need to know how to capture the raised event of the picker object when dynamically created.

    I can store the user selected items using events
     
  4. davepamn

    davepamn Active Member Licensed User

    Code:
    dim listControls as list

    Dim oLBX As Picker
                oLBX.Initialize(
    "lbx" & i)
                oLBX.Tag=sTestId

                listControls.InsertAt(iPickerCounter,oLBX)

    Sub cmdSave_Click
    Dim oView As View

        
    Dim i As Int

        
    For i =0 To listControls.Size-1
            oView=listControls.Get(i)
            
    Msgbox(oView.Tag,"Save_Click")
        
    Next
    end sub
    I can see the tag value for the picker

    How do I find the tag value for the selected item if it exists?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You should use the Sender keyword as done in the tutorial.
     
  6. davepamn

    davepamn Active Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice