I'm trying to create a list where I need to add entries, but I need to check the list first and only add the item if it's not already on the list.
Please could someone post an example of this as B4A has a slightly different syntax to VB. I would normally do something like this:
For Each item As ListItem In MyListBox.Items
If item.Selected Then
'Compare to new item
' Set a flag if it apears
End If
Next
If the Flag isn't set then
Add the item
Please could someone post an example of this as B4A has a slightly different syntax to VB. I would normally do something like this:
For Each item As ListItem In MyListBox.Items
If item.Selected Then
'Compare to new item
' Set a flag if it apears
End If
Next
If the Flag isn't set then
Add the item