PDA

View Full Version : Listbox and Textbox



sandyrepope
29-05-2007, 20:36
Could someone please explain to me the differences between Listbox and Textbox and what each is used for?

For some reason I'm just not getting it!
Thanks
Sandy

Petr Schreiber
30-05-2007, 00:07
Hi,

biggest difference from "common user" point of view is that you cannot write any data to listbox!
List box is good for selection of some options for example, textbox is more general.

To textbox you can assign all its text in one go, to listbox you can pass something in array at start, and then you append text to "items buffer". You can access listbox lines ( "items" ) by index; select, erase, replace them...

So textbox is all about work with one huge buffer, listbox about working ~similarly~ like with array.
Also listbox has for example one style equate to perform automatic sorting of items...


Bye,
Petr

sandyrepope
30-05-2007, 00:50
Psch

Thank you for your reply. From it I was able to figure out that Textbox is what I need for my program. I now know that Listbox wouldn't have worked. You saved me from having to experiment with each.

Thanks
Sandy