G GuyBooth Active Member Licensed User Longtime User Jan 1, 2023 #1 In my app using the "traditional" approach with activities, in my class for external storage I declare the following: B4X: Public Root As ExternalFile . . Public Sub List_Files (Folder As ExternalFile) As List . . End sub The code works fine, no errors show in the logs. I am trying to "translate" my code to a B4XPages based app. When I use the same declaration in the B4XPages based app the logs show: B4X: clExtStorage - 11: Unknown type: externalfile. Are you missing a library reference? at any point that I try to make a declaration for and "externalfile". I don't see that I have missed any of the libraries, and none of my other code shows similar errors. Does anyone have any suggestions for what I am missing?
In my app using the "traditional" approach with activities, in my class for external storage I declare the following: B4X: Public Root As ExternalFile . . Public Sub List_Files (Folder As ExternalFile) As List . . End sub The code works fine, no errors show in the logs. I am trying to "translate" my code to a B4XPages based app. When I use the same declaration in the B4XPages based app the logs show: B4X: clExtStorage - 11: Unknown type: externalfile. Are you missing a library reference? at any point that I try to make a declaration for and "externalfile". I don't see that I have missed any of the libraries, and none of my other code shows similar errors. Does anyone have any suggestions for what I am missing?
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2023 #2 Remove the ExternalStorage class and add a reference to ExternalStorage library. Upvote 0
G GuyBooth Active Member Licensed User Longtime User Jan 2, 2023 #3 Erel said: Remove the ExternalStorage class and add a reference to ExternalStorage library. Click to expand... ... and add the ExternalStorage.b4xlib to my B4X Additional Libraries folder ... works. Upvote 0
Erel said: Remove the ExternalStorage class and add a reference to ExternalStorage library. Click to expand... ... and add the ExternalStorage.b4xlib to my B4X Additional Libraries folder ... works.