A Andie Member Licensed User Longtime User Jan 13, 2014 #1 It's the first time I'm posting. Hopefully my question is not too silly. In my code a large text file (around 30.000 lines and a size of totally 4 MB) is read linewise with the help of the TextReader-Object. The textreader.Initialize command is part of Activity_Create. It takes a couple of seconds that all the lines were read and that the views (created by the Designer) are displayed. Is it possible, that the views are displayed before the "reading process" is completed?
It's the first time I'm posting. Hopefully my question is not too silly. In my code a large text file (around 30.000 lines and a size of totally 4 MB) is read linewise with the help of the TextReader-Object. The textreader.Initialize command is part of Activity_Create. It takes a couple of seconds that all the lines were read and that the views (created by the Designer) are displayed. Is it possible, that the views are displayed before the "reading process" is completed?
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2014 #2 Make sure to only load the file once when FirstTime is True. You can add a few calls to DoEvents to allow the UI to redraw. A better solution will be to convert the data to a SQLite database... Upvote 0
Make sure to only load the file once when FirstTime is True. You can add a few calls to DoEvents to allow the UI to redraw. A better solution will be to convert the data to a SQLite database...