View Single Post
Old 10-24-2004, 04:57 AM   #5 (permalink)
sippin codeine
 
Super Techie

Join Date: Jun 2004

Posts: 312

sippin codeine

Send a message via Yahoo to sippin codeine
Default

Delphi and c# are basically the same, they were designed by the same person, Anders Hejlsberg; Only difference is Delphi is easier to use and the syntax is cleaner, both are OOP.

Delphi Code
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
if Sender is TButton then
begin
(Sender as TButton).Caption := 'Hello';
end;
end;
C# Code
Code:
private void button1_Click(object sender, System.EventArgs e)
{
if (sender is Button)
{
(sender as Button).Text = "Hello";
}
}

__________________
**[System specs]**

Delphi Enterprise 6 - 7
VB 6.0 - 2005 EE
sippin codeine is offline