Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Delphi Programming Tutorial #42 - Hint Counter

Loading...

Sign in or sign up now!
1,730
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 16, 2008

In this Delphi Programming video we create a simple application for incrementing and decrementing counter. This video is part of my preparation for CodeRage III (Dec 1-5 2008)

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (codegearguru)

  • A tip: when using + / - buttons, set the Tag property to 1 for the addition button, and -1 for the subtraction button, then set both buttons to the same OnClick event. Within the event code, add: Value := Value + TButton(Sender).Tag;

    It reduces the code by a teeny bit.

    I loved the Max() tip! I didnt know about that one and I've been programming in Delphi/Pascal for about 20 years now!

    Thanks for all the videos you're doing. They're great!

  • I have used this tip many times in the past. You can do if Sender = bPlus then... Although I'm trying not to mess the code and user interface too much these days as it makes testing and later modification harder (although in this simple case I don't think it matters much).

see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • some nice hints there, thanks mate :)

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more