--- Sebastian from Berlin/Germany <[EMAIL PROTECTED]> wrote:
> i have a record-database and i want to bring the records in a random
> order. How could i do this an easy way. I planned to shuffle them by
> reading one deleting it and insert it at a random position ... but i 
> think this isn�t the easyest way :)

Do you want to access them randomly, or do you actually want them
stored randomly in your database?

If you want to access them randomly, generate a "random" number between
0 and DmNumRecords(dbP)-1 using SysRandom(), then retrieve that record
number with DmQueryRecord().


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to