Re: What the hell?......................... :(

[ DelphiLand Discussion Forum ]

Posted by webmaster Guido on April 29, 2003 at 15:52:49:

In Reply to: What the hell?......................... :( posted by Jason on April 29, 2003 at 05:09:34:

: Ok what is this listbox command??
: I really am new to this so forgive me if I sound stupid.
: But is there anyway to do it without useing that listbox command or stringlist?

: I seems all too complicated. So if you can .....please put it in dumb code for me :)


"ListBox" is not a command, it's a Delphi component that is on the component palette of every Delphi version.

I gave an example of a simple and probably the shortest way of solving the problem with standard Delphi components and commands.

Of course you can write code without using a ListBox in the "old" Pascal programming style: open the textfile, read it line by line, extract the numbers, and so on... until you reach the end of the file, and finally close the textfile. But since DelphiLand is about using Delphi to develop GUI (graphical user interface) Windows programs, I suggested what I consider the simplest solution, using Delphi components and their possibilities.

For an introduction in using Delphi and components, maybe have a look at the first lessons of the "Crash Course Delphi" on this site.

Related Articles and Replies:

[ DelphiLand Discussion Forum ]