Source language: Translate to:

Añadir elementos a listbox

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

Añadir elementos a listbox

Postby djmarkes » Wed Jun 24, 2015 1:19 am

Hola amigos.

¿Como puedo añadir elementos a un ListBox?

Gracias y saludos!
Diseño gráfico y Web profesional
User avatar
Posts: 191
Joined: Thu May 26, 2011 5:08 pm

Re: Añadir elementos a listbox

Postby Neosoft Support » Wed Jun 24, 2015 3:24 pm

A listbox's contents are defined with its "items" property, which can be either a static list set at design time or a variable array set at run time. For example, to create a listbox that can be changed at runtime, you would put a single variable name in the items property. For example, in the sample ListExample app, the items property is set to:


You can then initialize the variable array with multiple items like this:

Code: Select all
CreateArray [Autos] "Ford,Toyota,Honda,Jeep,Mazda,Audi,Subaru,Chevrolet,BMW,Chrysler,Fiat,Hyundai,Kia,Lexis,Volkswagen"

A single item can be added to the listbox like this:

Code: Select all
ArrayAddItem [Autos] "Tesla"

An item can be removed like this:

Code: Select all
ArrayDelItem [Autos] 2
NeoSoft Support
Neosoft Support
NeoSoft Team
Posts: 5620
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 0 guests