procedure TForm1.Button1Click(Sender: TObject);
DataSource1.DataSet := adoquery1;
DbMemo1.DataSource := DataSource1;
DbMemo1.DataField := 'description';
with adoquery1 do
if Active then Close;
SQL.Add('Select description from Rooms');
//adoquery1.Active := true; you don't have to make the query active as you open it in the next line.
Now, your dbMemo should be filled with the text from the first record in the dataset. So, you have to loop through dataset to get what do you need.
For debugging, I put watches and use DataSet.FieldByNAme('column_name').asString to see the value in the current record.
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others
I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.)
Made this in cpp.sh
Why would I need the x=y+1-1;?
x=y; just doesnt seem to work
Why is this?
And I know my coding ...