Помогите исправить две строчки кода, таким образом чтобы Builder C++ не ругался
void __fastcall TForm5::Edit4DragDrop(TObject *Sender, TObject *Source,
int X, int Y)
{
(Sender TEdit)->Text=(Source TLabel)->Caption;
}
void __fastcall TForm5::Edit2DragDrop(TObject *Sender, TObject *Source,
int X, int Y)
{
(Sender As TEdit).Text:=(Source as TLabel).caption;
}
Ошибки
[C++Error] Unit5.cpp(51): E2293)expected
[C++Error] Unit5.cpp(69): E2293)expected