Re: Ver 4 question about using eds.e

new topic     » goto parent     » topic index » view thread      » older message » newer message
bernie said...

I am trying to write a database using eds.e
There is a function called db_table_list which lists all tables in a database.
Unfortunately there is NO function to list all the records in a table.

The records in the table that I am using uses sequences for keys.
I want to pull all the records from the current table and display
them in a list control.

The problem is there is no easy way to get the records out of the table
one after another, because I am using sequences and not record numbers.
I can't have the user type-in the sequence keys.
In most databases you have a db_next_record function or etc.
If there was a list records function in the current table it would be easy.

integer size 
object key, data 
size = db_table_size() 
for i = 1 to size do 
   key = db_record_key(i) 
   data = db_record_data(i) 
   --do whatever you want with key and data 
end for 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu