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
... 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 ...
... 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 ...
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 ...
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( ...
... 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 ...
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\', ...
... 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"