Hello,
I am working with classes in my dbase to handle the data.
Storing one record into a class is no problem but i cant figure out how to store multiple records into a class (as an array/collection) :
lets say i have a table Employees :
ID Name Function Salary
1 Dirk Manager 3500
2 Eric Executive 2800
3 Marc Officer 2300
if i do "SELECT * FROM tblEMPLOYEES WHERE ID = 1"
i get one result to store in my class wich is no problem
if i do "SELECT * FROM tblEMPLOYEES" i get at least 3 results wich i want to store in my class
(to populate a combo or list or ...)
can anyone point me into the right direction or does anyone have any sample code ?
many thanks
Dirk.
I am working with classes in my dbase to handle the data.
Storing one record into a class is no problem but i cant figure out how to store multiple records into a class (as an array/collection) :
lets say i have a table Employees :
ID Name Function Salary
1 Dirk Manager 3500
2 Eric Executive 2800
3 Marc Officer 2300
if i do "SELECT * FROM tblEMPLOYEES WHERE ID = 1"
i get one result to store in my class wich is no problem
if i do "SELECT * FROM tblEMPLOYEES" i get at least 3 results wich i want to store in my class
(to populate a combo or list or ...)
can anyone point me into the right direction or does anyone have any sample code ?
many thanks
Dirk.