Private Section :
type
TWorkOwner = (woClient,woServer);
TWorkData = record
Owner : TWorkOwner;
AMessage : string;
MsgID : integer;
end;
WorkFlow : TQueue<TWorkData>;
WorkData : TWorkData;
Then I wish to add items of Type WorkData to this queue like this :
WorkData.Owner:=woClient;
WorkData.AMessage:='LogOn';
WorkData.MsgID:=MsgID;
WorkFlow.Enqueue(WorkData);
This works but I would like (if possible) directly Enqueue WorkData like this (pseudo code) :
WorkFlow.Enqueue(woClient,'LogOn',MsgID);
This obviously does not work , I tried a few different approaches but I cannot figure out how to set this if at all possible.
Thank you .