Monday, December 8, 2014

Intro to Delphi

Delphi Enterprise
from Pascal and Lazarus(Use Pascal Compiler)

Delphi Code:
procedure TForm1.btnShowMessageClick(Sender: TObject);
begin
     MessageDlg('It is fun to program with Delhi', ,mtInformartion, [mbOK], 0);
end;

Visual Basic:
private sub btnShowMessage(sender As Object, e As EvemtArgs) Handles

btnShowMessage.Click
MessageBox.Show("It is fun to program in Visual basic", "Information",

MessageBoxButtons.OK, MessageBoxIcon.Information)

End Sub

C#:
private void btnShowMessage_Click(object sender, EventArgs e)
{
MessageBox.Show("It is fun to program in C#", "Information",

MessageBoxButtons.OK, MessageBoxIcon.Infomation);
}

RAD(Rapid Application Development):
Programmers add Custom Code with an existing chunk of code and prepare a productive programs.


IDE:
Speed Bar
Component Pallete - Organise components
Often used are: Standard and Additional Tabs
Object Preview - Article list of Project which we used.And displayed in a tree view.
Below Object Inspector - Change the properties and events of particular Object on the screen.


Delphi Saving and Organizing Files:
Saving :

  • Unit File(.pas extension) Unit1, Unit2, etc...(frmFirstDemo_u)
  • The Project File(.dpr Extension - delphi project) FirstDemo_p


-- All files are saved the place where Unit Files are saved.

Exploring Delphi Files:
Initially when we save 2 files it haves 8 files
View > Forms for UI when the UI is not displyed.

For Run: F9

Naming Convension

No comments:

Post a Comment