Hi,
i have followed what you have suggested but i still got the value '0' .
Now, i wanna do the work in same
Unit mot from another
Code:
Procedure TForm1.AddDateTime(Sender:Tobject; AEvent: TcxSchedulerEvent);
begin
Query.Close();
QueryKalender.SQL.Text:= 'INSERT INTO Table'
'(Name`, `NEWID` ..) ' +
'VALUES ( ' :Name, :NEWID);';
Query.ParamByName('NEWID').AsInteger:= AEventID;
Query.ExecSQL();
Query.Close();
end;
Procedure TForm1.OnDragDrop(Sender, Source: TObject; X,
Y: Integer);
begin
//here i would like to use the value of AEventID;
//i cannnot call the procedure AddDateTime(Sender,TcxSchedulerEvent);
//becasue the parameter is different, how can i overcome it ?
end;