Jun 19, 2020 Replies: 28 The attached project is a porting of the B4X_SQLiteLight2 project which is included in the B4X SQLLite database booklet. It uses as much as possible XUI objects and common code. Tested with B4A, B4i and B4J. Last edited: Dec 9, 2020 Click to expand...
The attached project is a porting of the B4X_SQLiteLight2 project which is included in the B4X SQLLite database booklet. It uses as much as possible XUI objects and common code. Tested with B4A, B4i and B4J.
klaus Expert Licensed User Longtime User Feb 24, 2021 #22 Takes 1.65 second the first time and 1.41 the second time in Release mode. I made a few modifications in your program. 1. I commented FillCustomListView in B4XPage_Created to avoid two calls when the program is started. 1. I left it in B4XPage_Appear to get the CustomListview filled when the program comes back from the Edit or Filter page. Attachments B4XPagesSQLiteLight2New.zip B4XPagesSQLiteLight2New.zip 458.4 KB · Views: 736
Takes 1.65 second the first time and 1.41 the second time in Release mode. I made a few modifications in your program. 1. I commented FillCustomListView in B4XPage_Created to avoid two calls when the program is started. 1. I left it in B4XPage_Appear to get the CustomListview filled when the program comes back from the Edit or Filter page.
LucaMs Expert Licensed User Longtime User Feb 24, 2021 #23 klaus said: Yes, but you need to modify the filling of the CustomListView. I did not use CustomListView because it has no horizontal scrolling. Click to expand... Just to say... in some cases you could use a CustomListView in a landscape app
klaus said: Yes, but you need to modify the filling of the CustomListView. I did not use CustomListView because it has no horizontal scrolling. Click to expand... Just to say... in some cases you could use a CustomListView in a landscape app
klaus Expert Licensed User Longtime User Feb 24, 2021 #24 LucaMs said: ust to say... in some cases you could use a CustomListView in a landscape app Click to expand... Sure, but then you loose the vertical scrolling.
LucaMs said: ust to say... in some cases you could use a CustomListView in a landscape app Click to expand... Sure, but then you loose the vertical scrolling.
LucaMs Expert Licensed User Longtime User Feb 24, 2021 #25 klaus said: Sure, but then you loose the vertical scrolling. Click to expand... No, why?
klaus Expert Licensed User Longtime User Feb 24, 2021 #26 Sorry, I misread your post. I confused landscape app with horizontal CustomListview.
Sabotto Well-Known Member Licensed User Oct 30, 2023 #27 Hi Klaus. I followed your beautiful example to learn but I have a doubt: Why, in B4XMainPage (the MainPage) you declare MP as Public, if then to refer to that Mainpage, from within the two pageEdit and pageFilter classes, you have created two other private instances of the MainPage? B4X: Copy 'in the B4xmainPage Public MP As B4XMainPage 'in the pageEdit and in pageFilter Private MP As B4XMainPage I mean: if inside B4XMainPage I had declared MP as Private instead of Public what would have changed? Also because I don't understand what the MP declared in the B4XMainPage is for since it is never used. I hope I was able to explain. Last edited: Oct 30, 2023
Hi Klaus. I followed your beautiful example to learn but I have a doubt: Why, in B4XMainPage (the MainPage) you declare MP as Public, if then to refer to that Mainpage, from within the two pageEdit and pageFilter classes, you have created two other private instances of the MainPage? B4X: Copy 'in the B4xmainPage Public MP As B4XMainPage 'in the pageEdit and in pageFilter Private MP As B4XMainPage I mean: if inside B4XMainPage I had declared MP as Private instead of Public what would have changed? Also because I don't understand what the MP declared in the B4XMainPage is for since it is never used. I hope I was able to explain.
klaus Expert Licensed User Longtime User Oct 30, 2023 #28 You can remove it. The project is a relative old one, i have updated it in the source code of the B4X SQLite Database booklet, but, did not update it here. The reason was that i expected using MP directly in the other Pages, but it does not work as i expected it to work and forgot to remove this line. I will update the project in the first post. There are other SQLite projects in the source code of the B4X SQLite Database booklet. In the other modules i use MP to shorten the name, and, in the updated projects i directly use B4XPages.MainPage
You can remove it. The project is a relative old one, i have updated it in the source code of the B4X SQLite Database booklet, but, did not update it here. The reason was that i expected using MP directly in the other Pages, but it does not work as i expected it to work and forgot to remove this line. I will update the project in the first post. There are other SQLite projects in the source code of the B4X SQLite Database booklet. In the other modules i use MP to shorten the name, and, in the updated projects i directly use B4XPages.MainPage
klaus Expert Licensed User Longtime User Oct 30, 2023 #29 The first post has been updated with the latest version.