Página 1 de 1

TArrayBrowse:sort - Inverted mode?

Publicado: Mié Oct 13, 2021 11:20 pm
por Hurricane
Hi,
I need to start a column in descending order, but this will be ascending:

Código: Seleccionar todo

oCol:nSort:=nMode // bsDESCENDING
oBrw:sort(oCol)
So I changed it to: (works, but it's weird. I also understand that this was done for the title click)

Código: Seleccionar todo

oCol:nSort:=IF( nMode = bsDESCENDING, bsASCENDING, bsDESCENDING )
oBrw:sort(oCol)
My suggestion, add the mode in the method:

Código: Seleccionar todo

METHOD Sort( oCol, nMode ) CLASS XArrayBrowse
regards,

Re: TArrayBrowse:sort - Inverted mode?

Publicado: Jue Oct 14, 2021 5:35 pm
por ignacio
Hi,

Thanks for your suggestion.

Regards,