Delphi

From GMpedia.org Wiki

Jump to: navigation, search

Delphi is a compiled programming language and the main language for the Borland Delphi software. The programming language has been derived from Object Pascal, and Object Pascal itself was derived from the Pascal programming language.

The programming language has been created by Borland as a language to be used with their object oriented programming environment.

[edit] Language

Example of Delphi Coding:

procedure TForm1.Button1Click(Sender: TObject);
var
  Choice1: real;
begin
Choice1 := application.MessageBox(pchar('Title'),'Yes No Cancel?',MB_YESNO);
if (Choice1=IDYES) then
  begin
      ShowMessage('You Said Yes!');
  end;
 if (Choice1=IDNO) then
  begin
      ShowMessage('You Said No!');
  end;
end;

The example above uses the MessageBox function, that is common amongst many programming languages including C++, Visual Basic .NET, C#, Java, and many others.

[edit] See Also

Personal tools