Results 1 to 2 of 2

Thread: Delphi?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    I'm not an expert in VB but I do know most basic features and some advanced features.. I was wondering how different Delhpi is form VB? Could I take my basic to intermediate knowledge of VB and use Delphi? Or would I have to learn the whole thing from scratch?

    The reason I ask is that there is some source code out there that I would really like to get my hands on but they were creatd in Delphi.. I would assume that I need Delphi to use the source, right?

    Also, how hard of a task is it to convert Delphi code to VB?

    Any and all help would be apprecaited..

    Dan

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I was surprised when i found out how much VB and Delphi resemble.As in VB in Delphi you assign properties using the "." operator. There are much similar controls edit boxes,picture boxes with almost the same properties as in VB.
    You would have to learn just the basic differences like declaring variables:
    Code:
    Dim var as string 'VB
    var: string; 'DELPHI
    or functions.
    There is a huge resemblence in the keywords too.
    Code:
    for i := 1 to 20 do begin
    ac:=i;
    while ac>0 do
    begin
    sum := sum*ac ;
    ac := ac-1;
    end;
    You may have problems with conversion and using API's cos in VB everything is dim as long.In Delphi there is HWND ,HMENU ,TCHAR.There are also pointers to use in API's.After a week or two using DELPHI i was able to translate 90% of my VB app's into Delphi.
    The things that were diffucult for me to adapt is the "=" operator in VB in Delphi it is ":=" and the equivalence operator is "==" not as in VB "=" again.Also you have to put a terminator at the end of each statement ";"

    [Edited by Vlatko on 10-20-2000 at 12:05 PM]
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width