slide1 n.
Download
Skip this Video
Download Presentation
Lazarus?

Loading in 2 Seconds...

play fullscreen
1 / 29

Lazarus? - PowerPoint PPT Presentation


  • 251 Views
  • Uploaded on

Lazarus?. Lazarus is a free cross-platform visual integrated development environment (IDE) for rapid application development (RAD) using the Free Pascal compiler. Lazarus = Versi Gratis Delphi More : http://wiki.lazarus.freepascal.org/History. +/-. Kelebihan : Free

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Lazarus?' - koen


Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
lazarus
Lazarus?

Lazarus is a free cross-platform visual integrated development environment (IDE) for rapid application development (RAD) using the Free Pascal compiler.

Lazarus = Versi Gratis Delphi

More : http://wiki.lazarus.freepascal.org/History

slide3
+/-

Kelebihan :

  • Free
  • Cross Platform IDE (Linux,Mac,Windows)
  • 3rd party add onsto extend the IDE
  • Reporting and Charting
  • CodeTyphon

Kelemahan : Programmer kurang/belumpopuler

slide4
IDE

1

3

2

Main menu

Speed menu

Component Pallete

membuat project baru
Membuat Project Baru

Main Menu : Project -> New -> Application

Menyimpan project

Main Menu : File -> Save All

object properties
Object Properties

Caption : untukjudul/teks yang dimunculkanpada masing2 komponen

Name : inisiasi masing2 komponen

(Name tidakbolehmengandungspasi)

object properties1
Object Properties

procedure TForm1.FormCreate(Sender: TObject);

begin

nama.caption:='NamaSayaBukanKamu';

end;

event
Event

AksiPengguna, digunakanuntukmemanggilprocedure

OnClick, OnDblClick, OnExit, dll

event2
Event

procedure TForm1.Button1Click(Sender: TObject);

begin

MessageDlg ('Hello World', mtInformation, [mbOK], 0);

end;

event3
Event

MessageDlg ('Hello World', mtInformation, [mbOK], 0);

event4
Event

If MessageDlg('Please say YES or NO', mtConfirmation,[mbYes,mbNo],0)=mrYESthen

Label1.Caption:='Your Answer is Yes'

Else Label1.Caption:='Your Answer is NO';

perintah sequence
Perintah Sequence

Perintah-perintah yang akandiprosesolehkompilersecaraberurutan.

deklarasi
Deklarasi

DeklarasiKonstantaadalahtandapengenaldalamlazarus yang sudahditetapkannilainya.

Const pi=3.14;

deklarasi1
Deklarasi

DeklarasiVariabeladalahtandapengenaldalam Lazarus yang nilainyadapatterusberubahselama proses aplikasiberjalan

Varluas,vol: double;

operator
Operator

Operator Penugasan, digunakanuntukmemberikannilaibarupadasebuah variable.

Simbol operator penugasan “:=“

operator1
Operator

Operator Aritmatika, digunakanuntukmelakukan proses aritmatika

operator2
Operator

A:=‘Aku’;

B:=‘Bisa’;

C:=A+B;

Operator String, digunakanuntukmenggabungkanduabuah string/lebih

slide20

var

A,B:integer;

hasil:double;

str_A,str_B,hasil_join:string;

slide21

A:=StrToInt(editA.Text);

B:=StrToInt(editB.Text);

Hasil:=A+B;

edithasil.Text:=FloatToStr(Hasil);

str_A:=editA.Text;

str_B:=editB.Text;

Hasil_join:=str_A+str_B;

edithasil.Text:=Hasil_join;

tipe data
Tipe Data

TipeDasar :

  • Ordinal (Integer, Boolean)
  • Real
tipe data1
Tipe Data

Integer

tipe data3
Tipe Data

TipeKarakter:

  • Short strings (255)
  • Wide Strings (2^30)
  • Ansi Strings (2^31)
tipe data4
Tipe Data

var   Name : String[10];    Street : String;

Message : AnsiString;

Street can contain up to 255 characters

tipe data6
Tipe Data

procedure TForm2.btnHitungClick(Sender: TObject);

var p,l,t,luas,vol : integer;

begin

P:=StrToInt(editPanjang.Text);

L:=StrToInt(editLebar.Text);

T:=StrToInt(editTinggi.Text);

Vol:=P*L*T;

Luas:=(2*P*L)+(2*P*T)+(2*L*T);

editLuas.Text:=IntToStr(Luas);

editVolume.Text:=IntToStr(Vol);

end;

tipe data7
Tipe Data

Buatlah aplikasi untuk menghitung Volume dan Luas Permukaan Bola, rumusnya sbb :

Volume := 4/3 * 3.14 * R * R * R

Luas := 4 * 3.14 * R * R

Tipe data apakah yang harus/pantas digunakan?