Basic delphi iteration.

Discussion in 'Archives' started by TDD, Apr 8, 2008.

Basic delphi iteration.
  1. Unread #1 - Apr 8, 2008 at 6:38 AM
  2. TDD
    Joined:
    Nov 20, 2005
    Posts:
    3,191
    Referrals:
    2
    Sythe Gold:
    0

    TDD Web Design Expert
    Do Not Trade

    Basic delphi iteration.

    Ok, so we're going to make a fun little loop, so open up Delphi (I'm using Delphi 7)

    now, you'll have your empty application, with all your options, etc.

    Double click the form to go to the formCreate area of the program.

    now, make a new line above the begin, and type the following:
    Code:
    var x: integer;
    this declares the variable 'x' as an integer, or whole number, so whenever we use 'x' in the program, it will assosiate it with this variable.

    now below the begin type this:

    Code:
    x := 0;
    while x < 1 do
    alert('Hello');
    what does this do?

    Code:
    x := 0;
    ^^This assigns the value 0 to 'x'

    Code:
    while x < 1 do
    ^^This is the condition used for our while do loop, it checks to see if x is a number less then 1, if it is, it does whatever is after the 'do'

    Code:
    alert('Hello');
    ^^This shows a popup on screen that says "Hello"

    NOTE: There is no ';' after the do, this is because delphi registers the first semicolon in the while do loop as the end of the loop.

    Now click the green play button in delphi to test your program, if it runs you did it right, congratulations! now have fun.

    It's only basic, but it gives you a little delphi fun.

    <3 TDD
     
  3. Unread #2 - Apr 17, 2008 at 9:59 PM
  4. ki_am
    Referrals:
    0

    ki_am Guest

    Basic delphi iteration.

    Pretty cool thanks alot.
     
  5. Unread #3 - Apr 21, 2008 at 6:42 PM
  6. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    Basic delphi iteration.

  7. Unread #4 - May 17, 2008 at 1:14 AM
  8. ssj_ion
    Referrals:
    0

    ssj_ion Guest

    Basic delphi iteration.

    rofl thats cool
     
  9. Unread #5 - Jun 14, 2008 at 2:39 PM
  10. Uber l33t
    Joined:
    Jun 14, 2008
    Posts:
    208
    Referrals:
    0
    Sythe Gold:
    0

    Uber l33t Active Member
    Banned

    Basic delphi iteration.

    Lol I like that
    Pretty cool :p
     
  11. Unread #6 - Aug 30, 2008 at 3:19 PM
  12. joking
    Joined:
    Nov 9, 2007
    Posts:
    736
    Referrals:
    3
    Sythe Gold:
    0

    joking Apprentice
    Do Not Trade

    Basic delphi iteration.

    looks good and straight forward. i enjoyed reading this thx
     
  13. Unread #7 - Sep 23, 2008 at 1:43 PM
  14. The 1337 Tank
    Joined:
    Aug 5, 2008
    Posts:
    428
    Referrals:
    0
    Sythe Gold:
    0

    The 1337 Tank Forum Addict
    Banned

    Basic delphi iteration.

    pretty tight :D
     
  15. Unread #8 - Nov 3, 2008 at 8:01 AM
  16. Deacon Frost
    Joined:
    Jan 30, 2007
    Posts:
    2,905
    Referrals:
    3
    Sythe Gold:
    57

    Deacon Frost Grand Master
    Banned

    Basic delphi iteration.

    Circular reasoning works because...circular reasoning works because...circular reasoning works because...
     
  17. Unread #9 - Nov 3, 2008 at 4:09 PM
  18. Noob!
    Joined:
    Aug 29, 2008
    Posts:
    322
    Referrals:
    0
    Sythe Gold:
    0

    Noob! Forum Addict
    Banned

    Basic delphi iteration.

    Gnarly.. Do U Design For A Living?
     
  19. Unread #10 - Feb 16, 2009 at 5:42 PM
  20. Bring Me The Horizon
    Joined:
    Feb 16, 2009
    Posts:
    2,310
    Referrals:
    5
    Sythe Gold:
    0

    Bring Me The Horizon SCAMMER
    Banned

    Basic delphi iteration.

    Can i ask.. what is Delphi used to code? Programs? Web Sites?
     
  21. Unread #11 - Feb 16, 2009 at 6:44 PM
  22. DoorKnawb
    Joined:
    Feb 10, 2009
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    DoorKnawb Active Member

    Basic delphi iteration.

    Nice guide, may help people getting into coding. Yeah for while statements!
     
  23. Unread #12 - Feb 25, 2009 at 5:37 PM
  24. uhh omg rofl
    Joined:
    Feb 20, 2009
    Posts:
    22
    Referrals:
    0
    Sythe Gold:
    0

    uhh omg rofl Newcomer
    Banned

    Basic delphi iteration.

    awesome.
     
  25. Unread #13 - Feb 25, 2009 at 11:31 PM
  26. Glummy
    Joined:
    Apr 7, 2008
    Posts:
    467
    Referrals:
    1
    Sythe Gold:
    0

    Glummy Forum Addict
    Banned

    Basic delphi iteration.

    Great guide, although I have no idea what/how to use this.
     
< Msn messenger help | Publishing Voicemail to Twitter. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site