FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Delphi Tlistbox things..





Gushe
Well,,

For a Delphi project (for learning) I'm working on I need to be able working with a TlistBox.
I need to be able retrieving the Index of the currently selected item and edit it trough Button input.
The editing is nearly complete; since the value of each Component will be stored in an Array and I would try to show it using 'update' everytime the array value changes.
My first Problem is retrieving the selected item. I tried to write my own function to do that, but it didn't work very well.
The concept was to check the whole TlistBox with 'Selected' and return the index if it became true. The problem was that I couldn't use ListBox1.Selected[i] in an if-statement.

Also I am wondering how to show the array in the TlistBox everytime it gets edited, since every time a new item is added the array, and the amount of components grows. so an Update would be quite difficult.

Anyone that can help me on this?


Thanx in Advance,
Gushe
Related topics
3 things about google
20 things not to say to a cop
Things that you MUST not SUGGEST -- READ BEFORE POSTING!
Things you'll never hear dad say
Korean man 'overdoses' on gaming
INCREDIBLE THINGS HAPPEN IN AMERICA... In a simple 20$ bill
Couple of things about left side!
Crazy things you have done
the things to do in order to successfully launch a website
Dolphin Hunting in Japan!
Never try to sell FREE things
Things said in court xD
free things -.-
Problems with my pc
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.