Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Delphi Listbox (simple question)
Name: Peter K. Date: June 5, 2003 at 07:14:39 Pacific OS: winxp CPU/Ram: pIII 866/512mb
Comment:
Hello I have a listbox in Delphi. With a few entries in it. How can I read out the first entry, how the second...and so on? X:=listbox1. ...?
Name: micah Date: June 5, 2003 at 10:53:03 Pacific
Reply:
I'm just going to take a guess at this cause I haven't used Delphi. But, try this:
Do some sort of loop and increment an integer by one. Then:
X:=listbox1.List(i)
Or...something like that:þ
-Micah
0
Response Number 2
Name: magpie Date: June 5, 2003 at 20:42:24 Pacific
Reply:
Try this
X:=ListBox1.Items[i];
where i is in the range of 0 (first item in list to ListBox1.Items.Count-1.
Note ListBox1.Items.Count gives the number of items in the list (say 10), but since the first item in the list is referenced as 0, the last item in the list is referenced as 9.
Summary: Simple question here: How do I read an entire line from a file and store it into a variable? I have a function that can break up the line as I need it, but can't figure out how to read an entire line...
Summary: Simple Question, How Do I use a listbox as a process viewer, but heres the catch: I want the process viewer to only view the things in the taskbar, and view them as large icons Curiousity only injured...
Summary: Please, can anyboby help me with the problem in this simple C program ? After running, I can answer just the first question. The second question comes with "R=1" in front of the word "Aswer:". PLEASE ...