C CidTek Active Member Licensed User Longtime User Feb 28, 2011 #1 Clicking OK returns a list with zero entries if none are checked, and also so does pressing the back key. In my situation if the user doesn't want to keep any entries he leaves the list unchecked and the settings file is overwritten by one with zero entries. If he changes his mind and just hits the back key the same result will happen and the user loses all his favorites. Couldn't the back key return -1 so one can separate it from a valid 0 entries?
Clicking OK returns a list with zero entries if none are checked, and also so does pressing the back key. In my situation if the user doesn't want to keep any entries he leaves the list unchecked and the settings file is overwritten by one with zero entries. If he changes his mind and just hits the back key the same result will happen and the user loses all his favorites. Couldn't the back key return -1 so one can separate it from a valid 0 entries?
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2011 #2 This method must return a List. It cannot return -1. I will add a method named InputMultiList2 that will be similar to InputMultiList but will return an uninitialized list when the user presses on the back key.
This method must return a List. It cannot return -1. I will add a method named InputMultiList2 that will be similar to InputMultiList but will return an uninitialized list when the user presses on the back key.
C CidTek Active Member Licensed User Longtime User Mar 1, 2011 #3 Erel said: This method must return a List. It cannot return -1. I will add a method named InputMultiList2 that will be similar to InputMultiList but will return an uninitialized list when the user presses on the back key. Click to expand... Would you just test initialized state in this case?
Erel said: This method must return a List. It cannot return -1. I will add a method named InputMultiList2 that will be similar to InputMultiList but will return an uninitialized list when the user presses on the back key. Click to expand... Would you just test initialized state in this case?