Search found 3889 matches: endif

Return to advanced search

Re: Parpadeo de un SAY

... = .t. oCancelar:lTransparent = .t. ACTIVATE DIALOG oDlgMa CENTERED if lSave if agrega Materia->(DbAppend()) Materia->Codigo := nCodigo endif Materia->Detalle := cDetalle Materia->Abrevia := cAbrevia Materia->Ramo := nRamo Materia->Costo := nCosto Materia->Unidad := cUnidad ...
by José Camilo
Sat Mar 02, 2024 10:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Parpadeo de un SAY
Replies: 18
Views: 742

Re: Redondear un Numero

Gracias armando, quedo muy bien..
FUNCTION Redondear(nValor)
IF nValor % 10 <= 5
nValor := nValor - (nValor % 10)
ELSE
nValor := nValor + (10 - nValor % 10)
ENDIF
RETURN(Round(nValor,0))

saludos
by jbrita
Thu Feb 08, 2024 2:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Redondear un Numero
Replies: 7
Views: 418

Re: Redondear un Numero

José:

Creo que esto puede funcionar

FUNCTION Redondear(nValor)
IF nValor % 10 <= 5
nValor := nValor - (nValor % 10)
ELSE
nValor := nValor + (10 - nValor % 10)
ENDIF
RETURN(nValor)

Pruébalo, los hice de salida y asumo que en valor no hay fracciones decimales

Saludos
by Armando
Thu Feb 08, 2024 2:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Redondear un Numero
Replies: 7
Views: 418

Re: Redondear un Numero

... .AND. val_num<=5 valor = numero - val_num ElseIf val_num>= 6 .AND. val_num<= 9 valor = numero + (10-val_num) Else valor:=numero Endif Return(valor) Pero no se si se podria mejorar saludos
by jbrita
Thu Feb 08, 2024 2:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Redondear un Numero
Replies: 7
Views: 418

Re: Search by line

... not. I wrote such a function: if AtLine(adr, "{|xx|asc(xx)<48.or.asc(xx)>57}")=0 ............................................... endif function AtLine(itm, xBk)  local st, nOk:=0 ** itm - string  ** xBk - code block  xBk:=&xBk for st=1 to len(itm) if eval(xBk, itm[st]) nOk:=st ...
by Natter
Tue Feb 06, 2024 4:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Search by line
Replies: 8
Views: 324

Re: MariaDb SetFilter Error no definida: SOLUCIONADO

... :",@cPer ) WaitOn("Espere un momento por favor....",@oWait ) If cPer = Space(30) x := "" Else x := Upper(Alltrim( cPer )) EndIf cWhere := "detalle LIKE '"+x+"%'" oQry:SetFilter( cWhere ) aServer:ShowError() SysRefresh() oBrw:Refresh() WaitOff( @oWait ...
by CARLOS ATUNCAR
Sat Jan 27, 2024 1:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: MariaDb SetFilter Error no definida: SOLUCIONADO
Replies: 2
Views: 191

Re: MariaDb SetFilter no realiza Filtrado

... favor....",@oWait ) If cPer = Space(30) cWhere := "" Else x := Upper(Alltrim( cPer )) cWhere := "c.detalle LIKE '% ? %' " EndIf oQry:SetFilter( cWhere ,{x}) aServer:ShowError() SysRefresh() oBrw:Refresh() WaitOff( @oWait ) EndIf Return da este resultado Compiler version: ...
by CARLOS ATUNCAR
Sat Jan 27, 2024 12:04 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: MariaDb SetFilter Error no definida: SOLUCIONADO
Replies: 2
Views: 191

MariaDb SetFilter Error no definida: SOLUCIONADO

... ) If cPer = Space(30) cWhere := "" Else mWhere := {Upper(Alltrim( cPer ))} cWhere := "c.detalle LIKE '%?%'" EndIf TRY oQry:SetFilter( cWhere , mWhere) CATCH o SysRefresh() END oBrw:Refresh() WaitOff( @oWait ) EndIf Return Pero no me esta realizando el filtrado
by CARLOS ATUNCAR
Fri Jan 26, 2024 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: MariaDb SetFilter Error no definida: SOLUCIONADO
Replies: 2
Views: 191

Re: erase files

... "*.*" ) local i,cFile FOR i = 1 to LEN( aDir ) cFILE := ALLTRIM( aDIR[i][1] ) IF FErase(cDir+cFile ) != 0 Msginfo( FERROR() ,cfile) endif NEXT return nil
by Silvio.Falconi
Fri Jan 26, 2024 11:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1725

Re: erase files

... devi controllare il contenuto dell'array IF cFile <> "." .OR. cFile <> ".." IF FErase(cDir+cFile ) != 0 ? FERROR() ENDIF ENDIF consiglio 1 : senza parametro "D" consiglio 2 : metti il path -> cDir + cFile
by solving
Fri Jan 26, 2024 10:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1725

Re: Creating table with Trichedit

... := "table.rtf" local oFile := FCreate(cFileName, 0) aTable := {} Do while (!oTemp4:Eof()) * If Empty(oTemp4:Nome) oTemp4:skip() Loop Endif ....................... c1:="Cartella n."+ Trim(oTemp4:codice) c2:=alltrim(oTemp4:nome) procedure to Create atable from oTemp4 ........................ ...
by Silvio.Falconi
Thu Jan 25, 2024 10:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1621

Re: oRs:Find() ado en dos campos, sobre xbrowse, como?

Hello
ors:Find() only works with one field.

If I need more fields use the Filter function

oRs:Filter = "ll_consec="+alltrim(cFcEn)+" AND ll_docume="+alltrim(cFcDc)
IF oRs:RecordCount() == 0

ENDIF
oRs:Filter := "
Maurizio "
by Maurizio
Mon Jan 22, 2024 8:27 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: oRs:Find() ado en dos campos, sobre xbrowse, como?
Replies: 7
Views: 480

Re: I'm not asking for the moon...

... ".", ",") ntest4 := STRTRAN(str(oBrowse:aArraydata[nRecord][5]), ".", ",") Endif https://i.postimg.cc/W3tLsgFM/kk.png test with strtran not run , so tell me where I wrong #include "Fivewin.ch"#include ...
by Silvio.Falconi
Fri Jan 19, 2024 10:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: I'm not asking for the moon... Resolved!!
Replies: 24
Views: 2531

Re: Grabar imagen en tabla mysql

... );" IF !EJECUTA(cCmdSql+cCMDVAL) MsgStop("ERROR AL GRABAR ARCHIVO "+cFILE ,"AVISO") RETURN(.F.) ENDIF RETURN(.T.) PARA RECUPERAR FUNCTION EDATOS(cDAT,cNOM) cARCH=HexToStr(cDAT) ASALIDA:=".\"+cNOM hFile := FCreate(asalida) FWrite( hFile, ...
by Marco Augusto
Fri Jan 19, 2024 1:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Grabar imagen en tabla mysql
Replies: 5
Views: 466

Re: Soap Web Service - timeout request

... oHttp:Send( cHttpSend ) oHttp:WaitForResponse( nSecs ) Sysrefresh() IF oHttp:status=200 cWinResp := oHttp:ResponseBody ENDIF
by Antonio Linares
Tue Jan 09, 2024 6:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Soap Web Service - timeout request
Replies: 4
Views: 726
PreviousNext

Return to advanced search