GRACIAS por la prontitud.

Consigo sacar el valor de un item determinado el 4(el 5º pues el 1º es
0) pero si pido seleccionar un item y que me diga cual es simpre me
devuelve el valor -1 y no el de la posición o el propio valor.


Alexandro escribió:
> en el documento de andrew pitonyak viene un capitulo dedicado a formas y
> listbox:
>
> http://www.pitonyak.org/AndrewMacro.odt
>
> El texto en resumen menciona:
> 1.1.1. List Box
> A list box provides a list of values from which you may select a value. You
> can choose to enable multiple selections. To add items to a list box, I
> usually use something similar to addItems(Array("one", "two", "three"), 0).
> It is also possible to remove items from a list box.
> For a single selection, you can use getSelectedItemPos() to determine which
> item is selected. A -1 is returned if nothing is selected. If something is
> selected, 0 means the first item in the list. For multiple selections, use
> getSelectedItemsPos() which returns a sequence of shorts. See:
> http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XListBox.html
>
> El sitio de XListBox dice el desglozado de las opciones que entran en la
> interfaz de XListBox
>
>
>
> On 4/1/04, WhiteWolf <[EMAIL PROTECTED]> wrote:
>   
>> Saludos,
>>
>>
>>     Trato de aprender el basic de esta suite pero me estoy volviendo
>> loco con los ejemplo de la guía de programación por que fallan mucho o
>> "yo" los hago fallar.
>>
>>     ¿Alguien me pasa un código de rellenado, selección y borrado de un
>> ListBox?
>>
>> Gracias.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>     
>
>
> --
> Alexandro Colorado
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Responder a