[Lazarus] I am just wondering
Zelimir Ikovic
zelimir_ikovic at yahoo.com
Fri Feb 4 18:39:25 CET 2011
It doesnot have to be full conversion but at least some help!
I have 20000 lines VB6 program and I am not sure how to start.
Just write all lines again line by line, function by function etc
or try to make a program that will generate GUI positions, and properties
and import VB6 code (commented) and place it on right place, and then continue to fix and test
...
''''''''''''''''''''
VB6 FORM
''''''''''''''''''''
Begin VB.ListBox List1
Height = 3375
Left = 2040
TabIndex = 3
Top = 2640
Width = 5175
End
''''''''''''''''''''
VB6 CODE:
''''''''''''''''''''
Private Sub Command1_Click()
Label1.Caption = "aaa"
List1.AddItem "bbb"
End Sub
''''''''''''''''''''
LAZARUS FORM:
''''''''''''''''''''
object ListBox1: TListBox
Left = 44
Height = 285
Top = 97
Width = 358
ItemHeight = 0
TabOrder = 1
end
''''''''''''''''''''
LAZARUS CODE:
''''''''''''''''''''
procedure TForm1.Button1Click(Sender: TObject);
begin
Label1.caption := 'aaa';
ListBox1.Items.Add('bbb');
end;
--- On Fri, 2/4/11, Juha Manninen <juha.manninen62 at gmail.com> wrote:
> From: Juha Manninen <juha.manninen62 at gmail.com>
> Subject: Re: [Lazarus] I am just wondering
> To: "Lazarus mailing list" <lazarus at lists.lazarus.freepascal.org>
> Received: Friday, February 4, 2011, 9:15 AM
> Zelimir Ikovic kirjoitti perjantai 04
> helmikuu 2011 18:48:10:
> > Is there any VB6 to Lazarus translator, and how
> difficult would be to make
> > one
>
> Syntax translation would be rather easy but the libraries
> used by real
> programs are very difficult to map to FCL / LCL .
> On a positive side, converting Visual Basic programs is
> still more realistic
> than C++ or even Java.
> C++ has complex syntax. Java has clean syntax but the huge
> amount of libraries
> makes it (almost) impossible to convert.
>
> Even Delphi conversion is quite a challenge sometimes.
>
> If you want to study about Lazarus replacements for VB
> classes and functions,
> please write them down somewhere. They maybe can be used
> later.
>
> Juha
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list