Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Is CELLPOS random access
If I use
I am trying to implement lazy loading for an OI edit table. When the user scroll to a particular point, I load a chunk of data, rather than loading it all at the beginning.
I would like to be able to access the text of the topmost row on every VSCROLL, to check if it has already been loaded. But if CELLPOS is not random access, this will be too slow (I suspect).
Alternatively, I could use a global variable to keep track of which chunks I have already loaded -but I don't want do it like this because I hate setting and getting non-standard properties.
Get_Property (myedittable, "CELLPOS", position)
to get the text in a cell, does OI iterate through all preceding rows to get to the desired row, or does it go straight to the desired row? I am trying to implement lazy loading for an OI edit table. When the user scroll to a particular point, I load a chunk of data, rather than loading it all at the beginning.
I would like to be able to access the text of the topmost row on every VSCROLL, to check if it has already been loaded. But if CELLPOS is not random access, this will be too slow (I suspect).
Alternatively, I could use a global variable to keep track of which chunks I have already loaded -but I don't want do it like this because I hate setting and getting non-standard properties.
Comments
I will have to use another method unfortunately, unless there is a way to make the scroll gripper not fire VSCROLL events while being dragged.