Hola a todos :
estoy usando un Listbox para mostrar y seleccionar un proveedor de al seleccionarlo querria que se muestre en el primer lugar del ListBox ¿ es posible esto ?
busque en el foro y ejemplos pero no encontre lo que necesito.
Hello everyone:
I am using a Listbox to display and select a provider would want to select is displayed at the top of the ListBox is this possible?
search the forum and examples but did not find what I need.
Select :
Show :
ListBox
Moderator: Rathinagiri
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
ListBox
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: ListBox
Hola Daniel
Se me ocurre que en el ON CHANGE borres del array el elemento que seleccionaste
y luego lo insertes en la primer posición del mismo array...
claro, no deberás tener la propiedad SORT
------------------------------------------------------------------------------------------------------
Hello Daniel
It occurs to me that in the ON CHANGE erase the array element you selected
and then insert in the first position of the array ...
course, you should not have the SORT property
Se me ocurre que en el ON CHANGE borres del array el elemento que seleccionaste
y luego lo insertes en la primer posición del mismo array...
claro, no deberás tener la propiedad SORT
------------------------------------------------------------------------------------------------------
Hello Daniel
It occurs to me that in the ON CHANGE erase the array element you selected
and then insert in the first position of the array ...
course, you should not have the SORT property
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: ListBox
good solution
!! gracias ¡¡
!! gracias ¡¡
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: ListBox
Hola Andy:andyglezl wrote: Hello Daniel
It occurs to me that in the ON CHANGE erase the array element you selected
and then insert in the first position of the array ...
course, you should not have the SORT property
Una mejor manera de solucionar mi inconveniente fúe intercambiar el contenido del ListBox.
Recorde el viejo metodo de ordenamiento por burbuja y aplique una porcion de ese codigo.
-----------------------------------------------------------------------------------------
a better way to fix me was inconvenient exchange the contents of the ListBox.
I remembered the old method for bubble sort and apply a portion of the code.
Code: Select all
*-------------------------------------------------------------*
Function Selected()
*-------------------------------------------------------------*
Local nPos := Agregar.List_1.value
Local cFirts := Agregar.List_1.item( 1 )
Agregar.List_1.item( 1 ) := Agregar.List_1.item( nPos )
Agregar.List_1.item( nPos ) := cFirts
Agregar.Text_8.Value := Agregar.List_1.item( 1 )
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO