B4A Library [Class] Flexible Table

RB Smissaert

Well-Known Member
Licensed User
Longtime User
The other problem to mention is that the fastscroll doesn't work properly if there are a large number of rows, says 500000.
When you scroll to the bottom with the dark blue fast scroll view then if stops before halfway and there is no way to get to the bottom.
I checked if maybe this was caused by my code alteration as in the previous post, but commenting that out makes no difference.

RBS
 

vecino

Well-Known Member
Licensed User
Longtime User
I have never tested with such an amount of rows.
Does it really make sense to have such a huge number of rows ?
It certainly doesn't make any sense to load 500,000 records on a phone/tablet, who is going to go through that many records to find one?
They should be filtered before displaying them, and not loaded all of them.
 

Sergey_New

Well-Known Member
Licensed User
Longtime User
I need to create a row in a flexible table consisting of two substrings separated by CRLF and for each substring set the length according to the column width. Is it possible?
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Unless I am mistaken all the data obtained from a recordset is always done with GetString2.
I just realised that this seems to be truncating real (decimal) values to a maximum of 4 decimal values, which can be a nuisance.
If the data types of the recordset are known then perhaps it makes sense to get the data with the data specific functions, so
GetString2, GetInt2, GetLong2, GetDouble2 or GetBlob2.
That way you will see the full real data, so all decimals.
I have checked for speed and it is no slower (perhaps it is faster as there is more data to move to the view) to use the data specific
Get functions.

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
When you know the data type for the columns you should use LoadDatabase2.
OK, so I was mistaken and the data specific functions are used if the data types are known.
I looked at my own (altered) class and that didn't do that. Should have looked at the un-altered class.

RBS
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…