Search found 277 matches: asc

Return to advanced search

Re: Ctrl + T and bKeyDown

Dear Jimmy,

if GetKeyState( VK_CONTROL ) .and. ( nKey == Asc( "t" ) .or. nKey == Asc( "T" ) )

nKey is the key value that was pressed
by Antonio Linares
Mon Dec 26, 2022 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ctrl + T and bKeyDown
Replies: 4
Views: 228

Re: Txbrowse Column Sort Indicator

Thanks for the answer
It worked almost 100%, but it is updating all the columns.
I need only the Selected Column to be updated.
See the following images

Asc

Image

Desc

Image
by INFORMAISVRB
Fri Nov 18, 2022 9:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Txbrowse Column Sort Indicator
Replies: 9
Views: 841

Txbrowse Column Sort Indicator

...          cQuery := ' SELECT  * from forneced '    cQuery += ' ORDER BY ' + ALLTRIM(v_Campo_Ordenar)  + IF(v_Ordenacao='A',' DESC',' ASC')    use sql cQuery alias "forneced" new via 'MYSQL'    forneced->( DbGoTop())    oDB_forneced_SQL:oHeaderFonts ...
by INFORMAISVRB
Thu Nov 17, 2022 2:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Txbrowse Column Sort Indicator
Replies: 9
Views: 841

Convert and print chinese idioms

... the transmission and reception of the program in FW and a program that correctly prints and analyzes the strings character by character with asc () this is the result : Correct --------------- 214 208 185 250 176 230 With FW error -------------------- 228 184 173 229 155 189 231 137 136 I ...
by Maurizio
Fri Jul 08, 2022 3:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert and print chinese idioms
Replies: 3
Views: 480

Re: Browse and lower case keys

https://vivaclipper.wordpress.com/2014/01/19/asc/ Karinha, its the opposite... ASC returns the numeric code of a character string and Browses bKeyDown gives me a numeric code of a typed character. But in the browse, this code is the same ...
by concentra
Wed Mar 30, 2022 1:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Browse and lower case keys
Replies: 5
Views: 246

Re: Copy File Name

Natter, this is an example. You have to check your ASCII values and then substitute. // for I := 1 to len(cVData) // ? ( cVData + CRLF + substr(cVData,I,1) + " # "+ str( ASC ( substr(cVData,I,1)) )) // next cVData := STRTRAN( cVData, chr( ...
by Otto
Fri Jan 21, 2022 11:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy File Name
Replies: 21
Views: 999

Re: xbrowse + Tdolphin + Mysql

... oFont ) :SetDolphin( oQry, .F. ) END oBrw:aCols[01]:cOrder = "A" oBrw:aCols[01]:bLClickHeader := {|| SetOrden(oBrw:aCols[01],"doc+0 ASC",oQry )} oBrw:aCols[02]:bLClickHeader := {|| SetOrden(oBrw:aCols[02],"serie+numero ASC",oQry )} oBrw:aCols[03]:bLClickHeader := {|| ...
by CARLOS ATUNCAR
Mon Oct 18, 2021 2:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowse + Tdolphin + Mysql
Replies: 2
Views: 465

Re: FW_DbfSqlQuery TOP y ORDER BY ASC no funciona

... WHRE NOMBRE IS NOT NULL This code work's fine: cQuery := 'SELECT TOP 10 CODIGO,NOMBRE FROM ARTICULO WHERE NOMBRE IS NOT NULL ORDER BY NOMBRE ASC'oRs := FW_DbfSqlQuery( '.\DBF\', cQuery,,.t.)xBrowse( oRs, 'RecCount:' + Str( oRs:RecordCount() ) ) result: https://i.ibb.co/zbk1TcV/2021-06-28-19h18-58.png ...
by VictorCasajuana
Mon Jun 28, 2021 5:21 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FW_DbfSqlQuery TOP y ORDER BY ASC no funciona
Replies: 2
Views: 346

Re: FW_DbfSqlQuery TOP y ORDER BY ASC no funciona

Please try adding WHRE NOMBRE IS NOT NULL
by nageswaragunupudi
Mon Jun 28, 2021 4:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FW_DbfSqlQuery TOP y ORDER BY ASC no funciona
Replies: 2
Views: 346

FW_DbfSqlQuery TOP y ORDER BY ASC no funciona

Hola. Estoy realizando pruebas para trabajar con ADO los ficheros DBF y me está funcionando todo salvo la combinación de TOP y ORDER BY ASC El siguiente código funciona bien ya que el RecordCount del RecordSet devuelve 10 que es el TOP que se le indica: oRs := FW_DbfSqlQuery( '.\DBF\', ...
by VictorCasajuana
Mon Jun 28, 2021 8:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: FW_DbfSqlQuery TOP y ORDER BY ASC no funciona
Replies: 2
Views: 346

Re: Ordenar una tabla ascendente y descendentemente

... Str( nMes ) + ' order by fecha DESC' oQry := o : oRep : RowSet( cQuery ) En las funciones siguientes es donde quiero invertir el orden, de DESC a ASC oQry:Sort := "FECHA ASC"
by nageswaragunupudi
Mon Mar 22, 2021 1:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ordenar una tabla ascendente y descendentemente
Replies: 11
Views: 1270

Re: Ordenar una tabla ascendente y descendentemente

Amigo:

cQuery := 'select * from reporte where mes_fantasma = ' + Str( nMes ) + ' order by fecha DESC'
oQry := o : oRep : RowSet( cQuery )

// Después de crear el record set (oQry)
oQry:SORT := "CAMPO1,CAMPO2,etc ASC" // o DESC
oQry:MoveFirst()

Saludos
by Armando
Sun Mar 21, 2021 10:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ordenar una tabla ascendente y descendentemente
Replies: 11
Views: 1270

Re: Ordenar una tabla ascendente y descendentemente

Qué es el record set?

Esta es la consulta en la función principal:

cQuery := 'select * from reporte where mes_fantasma = ' + Str( nMes ) + ' order by fecha DESC'

oQry := o : oRep : RowSet( cQuery )


En las funciones siguientes es donde quiero invertir el orden, de DESC a ASC
by santidedos
Sun Mar 21, 2021 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ordenar una tabla ascendente y descendentemente
Replies: 11
Views: 1270

Re: Ordenar una tabla ascendente y descendentemente

Amigo:

Debes ordenar el record set así:

oRsGas:SORT := "GAS_USU,GAS_GAS ASC" // o DESC
oRsGas:MoveFirst()

Saludos
by Armando
Sun Mar 21, 2021 6:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ordenar una tabla ascendente y descendentemente
Replies: 11
Views: 1270
PreviousNext

Return to advanced search