Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. GolezTrol

    Loop Optimisation

    Since it is a for loop, High(a) will only be evaluated once. If it would be evaluated every loop, you could affect the number of loops by changing the dimensions or size of a. Besides that. The Delphi compiler is incredibly smart. So since comparing a number with 0 is slightly faster than...
  2. GolezTrol

    event handling for dynamically generated components

    I would like to say I prefer MikeEd's method, but I don't. This code won't compile since btn1 isn't created at designtime yet. You also don't have to typecast the component unless you need some specific properties of the component: procedure HandleMyEvents(Sender: TObject); begin if not...
  3. GolezTrol

    Find folders with FindFirst/FindNext?

    It's best to build a recursive function. Below I demonstrate a function that searches a specified folder and all sub folders for mp3 files. It's recursive, hence, it calls itself to process subfolders. And no, I'm not using highlights in every post ;-) You can call this function like this...

Part and Inventory Search

Back
Top