Hi
I have a List Box and OnSelect I want to add or remove to/from a Collection.
The logic is that if the list box item is selected then its added to the collection.
If the list box item is deselected then its removed from the collection.
I try this and it adds to the collection but doesn't remove from the collection.
Any ideas why?
Thanks
P
Notify("Am I blank? Selected is " & listboxClose.Selected.Key);
If(IsBlank(listboxClose.Selected.Key),
RemoveIf(myCloseFirms, galCloseFirms.Selected.FirmName = ChosenFirmName & CloseFirmName = listboxClose.Selected.Key),
Collect(
myCloseFirms,
{
ChosenFirmID:galCloseFirms.Selected.FirmID,
ChosenFirmName:galCloseFirms.Selected.FirmName,
CloseFirmName:listboxClose.Selected.Key
}
)
);