I have the following code:
procedure TForm2.actStareLivratExecute(Sender: TObject);
begin
if dbmodule.comenziDataSetlivrare.AsString = 'pick up' then
actEmailPickup.Execute
else
actEmailLivrare.Execute;
end;
Which works well, if 'pick up' is found in the specified field then it executes actEmailPickup if not it executes actEmailLivrare.
I would like to add 2 more actions to execute, besides these:
actSendSMSLivrare.Execute
actSendSMSPickup.Execute
It should be something like this:
begin
if dbmodule.comenziDataSetlivrare.AsString = 'pick up' then
actEmailPickup.Execute
actSendSMSPickup.Execute
else
actEmailLivrare.Execute
actSendSMSLivrare.Execute;
end;
Unfortunately this doesn't work, returns an error something relating to Boolean, as I'm fairly new I haven't been able to get to the bottom of this.
What should my final code look like, if at all possible to do this?
I'm using Rad Studio 10 Seattle.