Search found 296 matches: ctod

Return to advanced search

Re: como obtengo el valor mas chico de un array

AScan( ASort( AClone( a ) ), { | n, nPos | n := cToD(a:cargo["fecha"]), If( nVal < n, nResult := AScan( a, n) ) - 1,), cToD(n) > nVal } )

estás seguro de que ese código te funciona bien ?
by Antonio Linares
Wed Aug 23, 2023 5:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: como obtengo el valor mas chico de un array
Replies: 10
Views: 443

Re: como obtengo el valor mas chico de un array

... ASort( AClone( a ) ), { | n, nPos | If( nVal < n, nResult := AScan( a, n ) - 1,), n > nVal } ) en mi caso "n" voy a usarlo asi: cToD(a:cargo["fecha"]) Mi consulta: para que el codigo no quede tan largo como: AScan( ASort( AClone( a ) ), { | ...
by goosfancito
Wed Aug 23, 2023 5:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: como obtengo el valor mas chico de un array
Replies: 10
Views: 443

Re: no se porque no me ordena...

bien! si lo pase con ctod() y ahora si funciona.

gracias
by goosfancito
Thu Aug 17, 2023 9:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: no se porque no me ordena...
Replies: 3
Views: 208

Re: PICTURE for DATE() ?

... and in the VALID clause, I can link a function which checks if the date is correct or not. Afterwards, I change the string back to a date by using CTOD(). It is quite easy and it gives you the possibilities to add more controls to the valid clause. Example: if a date you want has to be between ...
by driessen
Mon Jul 17, 2023 3:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PICTURE for DATE() ?
Replies: 10
Views: 385

Sql Filter between two dates - ADO

... that has two datetime fields HDATE and LDATE and I have a button where when I click the button I can set a filter between the two dates Ldate := ctod("01/01/2023") Hdate := ctod("01/31/2023") oRs:Filter := "" oRsFilter := oRs:Fields("Ldate"):Value >= ...
by Rick Lipkin
Sat Jun 24, 2023 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Sql Filter between two dates - ADO
Replies: 3
Views: 327

Re: CLASS modification

hi Silvio, yes the btnbmp must be disabled, only when there is a valid data the btnbmp must be enable, on init the ddatacambio is ctod('') i do not "see" CODE which "enable" or "disable" BTNBMP as i say "Refresh" does only "paint" Control ...
by Jimmy
Wed May 31, 2023 5:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: CLASS modification
Replies: 33
Views: 1671

Re: CLASS modification

... or EVAL() ACTION of BTNBMP yes the btnbmp must be disabled, only when there is a valid data the btnbmp must be enable, on init the ddatacambio is ctod('')
by Silvio.Falconi
Wed May 31, 2023 7:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: CLASS modification
Replies: 33
Views: 1671

Re: CLASS modification

... Position @ nRow, 70 as you need a String, not Date, you can use DTOC() to "validate" if a String "is" a Date use CTOD()
by Jimmy
Tue May 30, 2023 5:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: CLASS modification
Replies: 33
Views: 1671

Re: calendar not run ( DBLCLICK)

ddatacambio:=CTOD(' ')

@ nRow, 70 DTPICKER aGet[1] VAR ddatacambio OF oDlgSub SIZE 198, 25 PIXEL ;
FONT oFont UPDATE PICTURE "ddd dd mmm yyyy" ;
ON CHANGE oBtnGetExchange:refresh() STYLE DTS_SHOWNONE
by Silvio.Falconi
Sat May 27, 2023 3:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calendar not run ( DBLCLICK)
Replies: 20
Views: 999

DBF REDE/WEB WINDOWS 7/10/11

... := .f. PUBLIC cComp PUBLIC cMesANO oPan := SWPanelWindow( "Função Testa Processo 01 - DBF ...." ) cMesAno :="01/2021" dData := Ctod( "15/"+cMesAno ) cAno := Right( cMesAno,4 ) cCompetencia := "01/2021" // cMonth( dData )+"/"+cAno // oMes := oTree:Add( ...
by wanderson8
Sun Jan 08, 2023 3:10 pm
 
Forum: All products support
Topic: DBF REDE/WEB WINDOWS 7/10/11
Replies: 0
Views: 4626

use fw_arraytodbf with conditions

... oTemp:= TDatabase():Open( , cPath+"LOTTO", "DBFCDX", .T. ) oTemp:gobottom() dUltimaData:=oTemp:data For n= 1 to len(aData) If ctod(aData[1][n]) > dUltimaData AaDd(aNewData,{aData[1][n],; aData[2][n],; aData[3][n],; aData[4][n],; aData[5][n],; aData[6][n],; aData[7][n]}) ...
by Silvio.Falconi
Sat Sep 17, 2022 10:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: use fw_arraytodbf with conditions
Replies: 5
Views: 606

Re: Listado Meses en rango de Periodo

... le sirve: Function Main() Local nMesI:=4 Local nAnoI:=2021 Local nMesF:=6 Local nAnoF:=2023 Local aPeriodo:={} Local cFecha1,cFecha2 cFecha1 := CTOD("01/"+strzero( nMesI, 2) + "/" + str( nAnoI ) ) cFecha2 := CTOD("01/"+strzero( nMesF, 2) + "/" + str( nAnoF ...
by jbrita
Wed Feb 09, 2022 4:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Listado Meses en rango de Periodo
Replies: 2
Views: 210

Re: Determine names of months between two dates

... the months against the list number Nages, your function MonthsInRange (d1, d2) returns me all the Months for a sample : aMesi1 := MonthsInRange( ctod(17/05/2021"), ctod("20/09/2021") return me May,June,July,August, September But I wish only the mounth from they are of pricelist ...
by Silvio.Falconi
Tue May 11, 2021 7:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Determine names of months between two dates - Resolved !!!!
Replies: 3
Views: 407

Re: Set Filter in Tdatabase/tdata

Mr. Silvio Please see these lines of code: local dDataIniziale:= ctod("04/07/2021")local dDataFinale:= ctod("08/07/2021") SET DATE ITALIAN  By default, the date format is American ( MM/DD/YY ) not ( DD/MM/YY ...
by nageswaragunupudi
Mon Apr 19, 2021 12:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Set Filter in Tdatabase/tdata
Replies: 6
Views: 675

Set Filter in Tdatabase/tdata

... I must filter the Reserva.dbf local cTipoElemento:="01" local nElemento:= 5 local dDataIniziale:= ctod("04/07/2021") local dDataFinale:= ctod("08/07/2021") and I made this command oReservations:Exec( < || SET FILTER TO AllTrim( ...
by Silvio.Falconi
Mon Apr 19, 2021 9:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Set Filter in Tdatabase/tdata
Replies: 6
Views: 675
Next

Return to advanced search