Page 1 of 1
ListBox Selección Multiple
Posted: Thu Apr 25, 2019 2:50 pm
by J. Ernesto
Buenos días
Después de haber hecho la selección múltiple y haber ejecutado algunas acciones, necesito vaciar oLbx:aSelections (), para volver a efectuar otra selección.
Gracias
Re: ListBox Selección Multiple
Posted: Thu Apr 25, 2019 4:58 pm
by FranciscoA
Re: ListBox Selección Multiple
Posted: Thu Apr 25, 2019 5:19 pm
by karinha
Code: Select all
FUNCTION LIMPIAR_LISTBOX( oLbx )
oLbx:SetFocus()
oLbx:ResetBarPos()
oLbx:UpStable()
oLbx:Reset()
oLbx:Refresh()
RETURN( .T. )
Saludos.
Re: ListBox Selección Multiple
Posted: Fri Apr 26, 2019 3:42 pm
by J. Ernesto
Fransisco / Karinha
Gracias por sus comentarios:
Lo que busco, es volver a dejar vacío el array :aSelections (), donde estan los items seleccionados, para volver a seleccionar otros items.
con :Reset (), me vacía el listBox y no me sirve.
Gracias
Re: ListBox Selección Multiple
Posted: Fri Apr 26, 2019 3:55 pm
by karinha
Intenta asi:
Code: Select all
Function DelMatriz(Vetor,Item)
Adel(Vetor,Item)
aSize(Vetor,Len(Vetor)-1)
return(.t.)
Re: ListBox Selección Multiple
Posted: Sun Apr 28, 2019 5:23 pm
by FranciscoA
Hola. Encontré esto en \samples. Pruébalo.
Code: Select all
aEval(oLbx:aItems,{|o,n| oLbx:SetSel(n,.f.) })