iOS Question AScheckbox getvalue into a CLV

Uniko Sistemi srl

Active Member
Licensed User
Hi everyone.
I have a question for which I can't find the answer. I currently use a CLV in b4A with only a single line containing checkboxes that I intercept when pressed, everything works and I use the following procedure:
b4a:
    Dim swf As CheckBox = Sender
    Dim Index As Int = clvdati.GetItemFromView(swf)
    Dim item As CLVItem = clvdati.GetRawListItem(Index)
    Dim pp As Panel=item.Panel.GetView(0).GetView(0)    
    Dim lbl4 As EditText  = pp.GetView(0)
    Dim checkb1 As CheckBox = pp.GetView(3)
    Dim checkb2 As CheckBox = pp.GetView(4)
    Dim checkb3 As CheckBox = pp.GetView(5)

the problem arises when I have to do it for ios.
I'm currently trying with AScheckbox, but it behaves differently. Has anyone already done something similar that they can study how to get out of?
I tried this:

b4i:
    Dim tmp_checkbox As ASCheckbox = Sender
    Dim index As Int = clvdati.GetItemFromView(tmp_checkbox.mBase)
    Dim item As CLVItem = clvdati.GetRawListItem(index)
   
    Dim pp As Panel=item.Panel.GetView(0).GetView(0)    
    Dim lbl4 As TextField  = pp.GetView(0)  
    Dim checkb1 As ASCheckbox = pp.GetView(3)
    Dim checkb2 As ASCheckbox = pp.GetView(4)
    Dim checkb3 As ASCheckbox = pp.GetView(5)

here it tells me that the types do not match the procedure does not work
Help!

Thanks everyone!
 

Alexander Stolte

Expert
Licensed User
Longtime User
Dim checkb1 As ASCheckbox = pp.GetView(3) Dim checkb2 As ASCheckbox = pp.GetView(4) Dim checkb3 As ASCheckbox = pp.GetView(5)
read the following thread:
 
Upvote 1
Top