I am currently working on little project and got stuck at this matter. So, i created a temp table which is containing item details, what i want is when i press button [save] and it will retrieve those records specific values and put the values into different temp variables.
this is what i did for selecting the specific record values.
DM.Zread.close;
DM.Zread.SQL.Commatext:= 'Select id_dvd from temp_table where rent_id="rent-0001"';
DM.Zread.open;
e.g : selected record values :
id_dvd
| 2 |
| 6 |
| 5 |
as i said before, i wanted to put those record values into 3 different temp variables. so it will be like :
//assumed i did the array function
a:=x[0]; // this line contain value from record one which is 2
b:=x[1]; // this line contain value from record two which is 6
c:=x[2]; // this line contain value from record three which is 5
And i totally have no idea to do this, i've searched on stackoverflow and there isn't any thread discussed about this. But i've got little reference that this methode should be using Array function, that's why i made the example using array. to be honest, i am not really understood using Array.
It will be appreciate for who help me through this.
Thank you
-Dan