Hi everyone, I'm stuck on how to calculate the item price for every checked Item. This function user can check multiple item and the subtotal will automatically calculated.
B4X:
Private Sub CheckBox1_CheckedChange(Checked As Boolean)
Dim cb As String
Dim totalSelected As Int
Dim chk As CheckBox = Sender.As(CheckBox)
Dim itemC() As String = Regex.Split("\|", chk.Tag)
If itemC.Length > 1 Or Checked == True Then
chk.Tag = itemC(0)
Return
End If
If Checked = True Then
cb="1"
lblDashOrderSubTotal.Text = lblDashOrderSubTotal.Text + priceItem
Else
cb="0"
End If
End Sub