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

davepamn

Active Member
Licensed User
Longtime User
I have a group of dynamic picker controls and textboxes. How do I get a list of these controls to obtain their values?
 

davepamn

Active Member
Licensed User
Longtime 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
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
B4X:
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?
 
Upvote 0
Top