Difference between revisions of "Talk:Lazarus Documentation/old"

From Lazarus wiki
Jump to navigationJump to search
(Idea about Tutorial for Object Oriented Programming with Lazarus and Free Pascal)
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Hello!
 
Hello!
 
I have an idea about that that it would be good to write a tutorial for Object Oriented Programming in Free Pascal including Lazarus.
 
I have an idea about that that it would be good to write a tutorial for Object Oriented Programming in Free Pascal including Lazarus.
Say, if one make a new appliacation in Lazarus, and get the first code in the Source Editor, then I would to explain - or want to be explained every line.
+
 
 +
Say, if one make a new application in Lazarus, and get the first code in the Source Editor, then I would to explain - or want to be explained every line.
 +
 
 
An example:
 
An example:
  
Line 8: Line 10:
  
 
'''{$mode objfpc}{$H+}'''
 
'''{$mode objfpc}{$H+}'''
 
+
?
  
 
'''interface'''
 
'''interface'''
 
+
?
  
 
'''uses'''
 
'''uses'''
  
 
'''  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs;'''
 
'''  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs;'''
  Used Units
+
  Needed Units
  
 
'''type'''
 
'''type'''
 
+
?
 
'''  TForm1 = class(TForm)'''  
 
'''  TForm1 = class(TForm)'''  
  
Line 25: Line 27:
  
 
'''  private'''
 
'''  private'''
 
+
?
 
'''    { private declarations }'''
 
'''    { private declarations }'''
 
+
?
  
 
'''  public'''
 
'''  public'''
 
+
?
 
'''    { public declarations }'''
 
'''    { public declarations }'''
 
+
?
  
 
'''  end; '''
 
'''  end; '''
 
+
?
  
 
'''var'''
 
'''var'''
 
+
?
 
'''  Form1: TForm1; '''
 
'''  Form1: TForm1; '''
 
+
?
  
 
'''implementation'''
 
'''implementation'''
 
+
?
  
 
'''initialization'''
 
'''initialization'''
 
+
?
  
 
'''  {$I unit1.lrs}'''
 
'''  {$I unit1.lrs}'''
 
+
?
  
 
'''end.'''
 
'''end.'''
 
  End of the program
 
  End of the program
 +
 +
: Sure, the Wiki is for everyone to edit. Create a new page for your tutorial and write it ;) --[[User:Sekelsenmat|Sekelsenmat]] 04:39, 9 June 2008 (CEST)
 +
 +
see: [[Object Oriented Programming with Free Pascal and Lazarus]]  [[User:Arent|Arent]] ([[User talk:Arent|talk]]) 13:45, 27 July 2020 (CEST)

Latest revision as of 13:45, 27 July 2020

Hello! I have an idea about that that it would be good to write a tutorial for Object Oriented Programming in Free Pascal including Lazarus.

Say, if one make a new application in Lazarus, and get the first code in the Source Editor, then I would to explain - or want to be explained every line.

An example:

unit Unit1;

Unit Name

{$mode objfpc}{$H+}

?

interface

?

uses

Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs;

Needed Units

type

?

TForm1 = class(TForm)

A new Object TForm1 from the Class TForm has been created.

private

?

{ private declarations }

?

public

?

{ public declarations }

?

end;

?

var

?

Form1: TForm1;

?

implementation

?

initialization

?

{$I unit1.lrs}

?

end.

End of the program
Sure, the Wiki is for everyone to edit. Create a new page for your tutorial and write it ;) --Sekelsenmat 04:39, 9 June 2008 (CEST)

see: Object Oriented Programming with Free Pascal and Lazarus Arent (talk) 13:45, 27 July 2020 (CEST)