spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * GUI List Box functions and properties

AddItem

(Formerly known as ListBoxAdd, which is now obsolete)

ListBox.AddItem(string newitem)
Adds NEWITEM to the specified list box. The item will be appended to the end of the list.

NOTE: List boxes have a limit of 200 items. If you try to add more than that, this function will return false and the item will not be added.

Example:

String input = txtUserInput.Text;
lstChoices.AddItem(input);
will take the input from the user and add it to the listbox.

See Also: ListBox.Clear, ListBox.FillDirList, ListBox.InsertItemAt, ListBox.Items, ListBox.RemoveItem


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.