Search found 229 matches: setorder

Return to advanced search

Re: records on xbrowse

... ( on First) ndatarow is 3 and also obrw:nlen is 3 I tried to inser a variable nTotalrecords at init oDbf:= TCustomer():New() oDbf:setorder(1) oDbf:Gotop() nTotalRecords:= oDbf:OrdKeyCount() and the on each button WHEN ( nTotalRecords > oBrw:nDataRows ) but it's wrong also
by Silvio.Falconi
Wed Mar 27, 2024 9:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: records on xbrowse
Replies: 8
Views: 1688

Re: xbrowser, setorder DESC

ok.
And so that the column that is ordered by "SELECT" appears the TRIANGULITE as it is done?
by goosfancito
Mon Mar 25, 2024 8:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

If the column is already ordered oCol:SetOrder() toggles ASC and DESC.
You need not have set aCols[ 2 ]:SetOrder() because it was already in the descending order.
by nageswaragunupudi
Mon Mar 25, 2024 4:49 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

cmsoft wrote:
goosfancito wrote:acols[2]:setorder() (que es la columna fecha) y me lo ordena en forma ASCEndente.

Code: Select all  Expand view

oBrw:aCols[2]:SetOrder()
oBrw:aCols[2]:cOrder := 'D'
 

De esta manenar te indica que el orden es descendente


Termino de probarlo pero no me lo hace che.
by goosfancito
Mon Mar 25, 2024 4:29 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

gracias!
by goosfancito
Thu Mar 21, 2024 6:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

goosfancito wrote:acols[2]:setorder() (que es la columna fecha) y me lo ordena en forma ASCEndente.

Code: Select all  Expand view

oBrw:aCols[2]:SetOrder()
oBrw:aCols[2]:cOrder := 'D'
 

De esta manenar te indica que el orden es descendente
by cmsoft
Wed Mar 13, 2024 11:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

Estimado goosfancito

Tenes que crear tu indice en DESCENDENTE
Code: Select all  Expand view

INDEX ON NOMBRE TAG NOM  DESCEND
.....

....
SET ORDER TO TAG NOM
 
by acuellar
Wed Mar 13, 2024 8:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

Ok.
Pero yo necesito que cuando muestre el xbrowser (al iniciar el programa) ya me muestre ordenado descendientemente por una columna.
by goosfancito
Tue Mar 12, 2024 4:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: xbrowser, setorder DESC

If we use AUTOSORT clause while defining XBrowse, when the user clicks on a header, it automatically toggles sort ascending and descending.
by nageswaragunupudi
Mon Mar 11, 2024 6:59 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

xbrowser, setorder DESC

Hola.

Mi procedimiento almacenado en MARIADB devuelve la consulta ordenado por Fecha y Descendiente,
en el código luego hago un
acols[2]:setorder() (que es la columna fecha) y me lo ordena en forma ASCEndente.
como hago para que me lo ordene DESCENDENTE?
by goosfancito
Sat Mar 09, 2024 4:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowser, setorder DESC
Replies: 8
Views: 1668

Re: RAO advice on using Mysql

... GoTop(),GoBottom(),GoTo(nRec),KeyGoTo(nKey),Skip(n) FCount(),FieldPos(c),FieldName(),FieldLen(),FieldDec(),FieldType() FieldGet(),FieldPut() SetOrder(cSort,,lDescend) Save() Close() or End() --------------- NOT SUPPORTED: Seek(), Filter(),Delete(),Append() The RecSet class is created in such ...
by nageswaragunupudi
Fri Feb 02, 2024 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 973

Re: Lost connection to MySQL server during query

Good Afternoon Mr Rao, IF I try to do this: oRs := oBD:Query("SELECT * FROM customers") oRs:SetOrder("name") And the mysql connection has been lost, there will be an error in oRs:SetOrder("name"), like this: ERROR BASE/1004 Message not found NIL:SetOrder ...
by vilian
Fri Aug 04, 2023 5:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Lost connection to MySQL server during query
Replies: 37
Views: 12375

Re: Lentitud al abrir una dbf en red

... tUser ) local oDlg, oLbx, oBusco, cBusco := SPACE(20) //, cAlias:=cGetNewAlias('Sample') set deleted on AbrePaci( ) oPaci:SetFocus() oPaci:SetOrder( 2 ) DEFINE DIALOG oDlg RESOURCE "FONDO_PACIENTE" TITLE "ABM de Pacientes" REDEFINE LISTBOX oLbx FIELDS str(@oPaci:Codigo,6), ...
by ACC69
Thu Jul 06, 2023 3:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lentitud al abrir una dbf en red
Replies: 31
Views: 1551

Re: Lentitud al abrir una dbf en red

... tUser ) local oDlg, oLbx, oBusco, cBusco := SPACE(20) //, cAlias:=cGetNewAlias('Sample') set deleted on AbrePaci( ) oPaci:SetFocus() oPaci:SetOrder( 2 ) DEFINE DIALOG oDlg RESOURCE "FONDO_PACIENTE" TITLE "ABM de Pacientes" REDEFINE LISTBOX oLbx FIELDS str(@oPaci:Codigo,6), ...
by ACC69
Thu Jul 06, 2023 2:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lentitud al abrir una dbf en red
Replies: 31
Views: 1551

Lentitud al abrir una dbf en red

... tUser ) local oDlg, oLbx, oBusco, cBusco := SPACE(20) //, cAlias:=cGetNewAlias('Sample') set deleted on AbrePaci( ) oPaci:SetFocus() oPaci:SetOrder( 2 ) DEFINE DIALOG oDlg RESOURCE "FONDO_PACIENTE" TITLE "ABM de Pacientes" REDEFINE LISTBOX oLbx FIELDS str(@oPaci:Codigo,6), ...
by lgolexyn
Thu Jul 06, 2023 2:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lentitud al abrir una dbf en red
Replies: 31
Views: 1551
Next

Return to advanced search