Tuesday, April 22, 2008, 2:52:37 PM, you wrote:

Why not just keep the rowid's in an array and query the actual row
contents as needed. This is typical with virtual list or tree
controls. That is you keep a reference to the data, not the data
itself.


F> Thanks for the quick reply Epankoke.
F> We tried as you mentioned. But we are restricted with the memory size and
F> the storage of the needed data occupies some MB's of space in the memory so
F> we cannot go for it. Is there any other work around to perform the scrolling
F> condition.

F> Kindly help in this regard.

F> Regards,
F> Farzana.


F> epankoke wrote:
>> 
>> Is it possible to store all of the needed data in memory?  If so, why not
>> read the required information into an array and just update an index
>> variable to keep track of where you are at in the array when the user
>> clicks the up and down buttons?  That should be quite fast.
>> 
>> --
>> Eric Pankoke
>> Founder / Lead Developer
>> Point Of Light Software
>> http://www.polsoftware.com/
>> 
>>  -------------- Original message ----------------------
>> From: Farzana <[EMAIL PROTECTED]>
>>> 
>>> Thanks for your reply Igor.
>>> 
>>> We tried populating the listbox as mentioned in the URL.We are successful
>>> in
>>> populating the listbox but when we go for scrolling the data, it takes
>>> more
>>> time to move forward and backward since it has to execute the query
>>> everytime. We are using a PocketPc so it is much slower. Is there any
>>> other
>>> way to do this or can some one provide us a sample code for the same.
>>> We are using a Table say Employees where we have to dsiplay their Job
>>> Description in ascending order in a user defined listbox with scroll up
>>> and
>>> scroll down buttons. Can anyone provide us a suggestion.
>>> Thanks in Advance.
>>> 
>>> Regards,
>>> Farzana
>>> 
>>> 
>>> 
>>> Igor Tandetnik wrote:
>>> > 
>>> > "Farzana" <[EMAIL PROTECTED]>
>>> > wrote in message news:[EMAIL PROTECTED]
>>> >> We are working in eVC++ environment with SQLite database.We need to
>>> >> populate the listbox with the values obtained by executing the query.
>>> >> We were able to get the values of the query by using the API's
>>> >> sqlite3_prepare and sqlite3_step.
>>> >> But we were able to populate and move the listbox in the downward
>>> >> direction only
>>> > 
>>> > http://www.sqlite.org/cvstrac/wiki?p=ScrollingCursor
>>> > 
>>> > Igor Tandetnik 
>>> > 
>>> > 
>>> > 
>>> > _______________________________________________
>>> > sqlite-users mailing list
>>> > sqlite-users@sqlite.org
>>> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>>> > 
>>> > 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Populating-and-scrolling-the-Listbox-using-query-tp1667617
>>> 8p16806114.html
>>> Sent from the SQLite mailing list archive at Nabble.com.
>>> 
>>> _______________________________________________
>>> sqlite-users mailing list
>>> sqlite-users@sqlite.org
>>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>> 
>> _______________________________________________
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>> 
>> 



-- 
Best regards,
  Neville Franks, http://www.surfulater.com http://blog.surfulater.com
 

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to