tremara1 Active Member Licensed User Longtime User Dec 26, 2014 #1 I am trying to select multiple files in a file chooser and put the paths in a list using.... Code: Copy myList.AddAll(fc.ShowOpenMultiple(MainForm)) it works fine if you select at least one file but if you cancel select it crashes. How can I load the paths in the list and deal with user cancels select?? Sorry if I have missed the obvious(again).....
I am trying to select multiple files in a file chooser and put the paths in a list using.... Code: Copy myList.AddAll(fc.ShowOpenMultiple(MainForm)) it works fine if you select at least one file but if you cancel select it crashes. How can I load the paths in the list and deal with user cancels select?? Sorry if I have missed the obvious(again).....
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2014 #2 See the documentation: "Returns an uninitialized list if the user has not chosen any file." Code: Copy Dim files As List = fc.ShowOpenMultiple(...) If files.IsInitialized Then myList.AddAll(files) End If Upvote 0
See the documentation: "Returns an uninitialized list if the user has not chosen any file." Code: Copy Dim files As List = fc.ShowOpenMultiple(...) If files.IsInitialized Then myList.AddAll(files) End If
tremara1 Active Member Licensed User Longtime User Dec 26, 2014 #3 Erel said: See the documentation: "Returns an uninitialized list if the user has not chosen any file." Code: Copy Dim files As List = fc.ShowOpenMultiple(...) If files.IsInitialized Then myList.AddAll(files) End If Click to expand... thanks mate.... Upvote 0
Erel said: See the documentation: "Returns an uninitialized list if the user has not chosen any file." Code: Copy Dim files As List = fc.ShowOpenMultiple(...) If files.IsInitialized Then myList.AddAll(files) End If Click to expand... thanks mate....