Search found 50 matches: uchartoval

Searched query: uchartoval

by nageswaragunupudi
Fri Jan 31, 2025 12:13 pm
Forum: FiveWin para Harbour/xHarbour
Topic: uCharToVal()
Replies: 3
Views: 561

Re: uCharToVal()

... 25-02-1998", "10 jan 2010", "feb 15, 78" }

SET DATE ITALIAN
SET CENTURY ON
FWNumFormat( "A", .t. )


AEval( aStr, { |c,i| aStr[ i ] := { c, uCharToVal( c ), nil } } )
AEval( aStr, { |a,i| a[ 3 ] := ValType( a[ 2 ] ) } )


XBROWSER aStr TITLE "uCharToVal(c)" SETUP ( ;
oBrw:cHeaders ...
by FiveWiDi
Thu Jan 30, 2025 11:23 pm
Forum: FiveWin para Harbour/xHarbour
Topic: uCharToVal()
Replies: 3
Views: 561

Re: uCharToVal()

Supuse que andaba por ahí la cosa, y he acertado.

Muchas gracias Antonio,
by Antonio Linares
Thu Jan 30, 2025 9:28 pm
Forum: FiveWin para Harbour/xHarbour
Topic: uCharToVal()
Replies: 3
Views: 561

Re: uCharToVal()

... la cadena a una fecha.
* - Si no se especifica un tipo válido, se infiere el tipo a partir del contenido de `cText`.
*
* @example
* uCharToVal("123", "N") // Devuelve 123 como número
* uCharToVal("true", "L") // Devuelve .T. (true en Harbour)
* uCharToVal("2024-01-01", "D") // Devuelve ...
by FiveWiDi
Thu Jan 30, 2025 6:20 pm
Forum: FiveWin para Harbour/xHarbour
Topic: uCharToVal()
Replies: 3
Views: 561

uCharToVal()

Hola a todos,

Yo tenía entendido que haciendo esto:
uMiValor := uCharToVal( uMiValor, MiOtroValor )

uMiValor se convertía al tipo de uMiOtroValor

Es decir que si ValType( uMiOtroValor ) era N, entonces:
uMiValor := uCharToVal( uMiValor, MiOtroValor )

era lo mismo que:
uMiValor := Val( uMiValor ...
by Antonio Linares
Sat Jul 11, 2020 5:26 pm
Forum: WhatsNew / Novedades
Topic: New FTDN June 2020 (FWH 20.06)
Replies: 1
Views: 2562

Re: New FTDN June 2020 (FWH 20.06)

... como parámetro y el resultado anula
nDataStrAlign.

- SqlRdd: Compatibilidad mejorada para barras de desplazamiento vertical.

* Corrección: uCharToVal( cDate, "D" ) no siempre devuelve el resultado correcto.
La función estática dCharToDate ( cDate ) se revisa para solucionar el problema ...
by Antonio Linares
Thu Jul 09, 2020 9:37 am
Forum: WhatsNew / Novedades
Topic: New FTDN June 2020 (FWH 20.06)
Replies: 1
Views: 2562

New FTDN June 2020 (FWH 20.06)

... is evaluated with oCol as parameter and the result
overrides nDataStrAlign

- SqlRdd: Enhanced compatibility for Vertical Scrollbars.

* Fix: uCharToVal( cDate, "D" ) is not always returning the correct result.
static function dCharToDate( cDate ) is revised to fix the issue.
http://forums ...
by Antonio Linares
Sun May 10, 2020 1:26 pm
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2020 (FWH 20.04)
Replies: 1
Views: 3419

Re: New FTDN April/Abril 2020 (FWH 20.04)

... Se ha corregido un error en RibbonBar reportado por Silvio.
Para más detalles mira en: viewtopic.php?f=3&t=38743&start=0

* Corrección: uCharToVal( cDate, "D" ) en source/function/valtostr.prg:
Esta función falla con el nombre de mes si es precedido por un carácter como - o /.
Para más ...
by hua
Fri May 08, 2020 10:44 pm
Forum: FiveWin for Harbour/xHarbour
Topic: uCharToVal returns "01/01/2020" as 20/09/0090
Replies: 4
Views: 1205

Re: uCharToVal returns "01/01/2020" as 20/09/0090

Hi Rao,
Yes I got the expected result with the fixed version.

Thank you
by nageswaragunupudi
Fri May 08, 2020 1:35 pm
Forum: FiveWin for Harbour/xHarbour
Topic: uCharToVal returns "01/01/2020" as 20/09/0090
Replies: 4
Views: 1205

Re: uCharToVal returns "01/01/2020" as 20/09/0090

The bug is fixed in version FWH2005 to be released.

You can make this correction and test.

In the module \fwh\source\function\valtostr.prg:
please replace the existing
static function dCharToDate( cDate )
with the following revised function:

static function dCharToDate( cDate )&nbsp ...
by hua
Mon May 04, 2020 6:05 pm
Forum: FiveWin for Harbour/xHarbour
Topic: uCharToVal returns "01/01/2020" as 20/09/0090
Replies: 4
Views: 1205

uCharToVal returns "01/01/2020" as 20/09/0090

Hi Rao,
Is my usage of uCharToVal() wrong?

Code: Select all | Expand


#include "fivewin.ch"

proc main()
  set century on
  set date british

  ? uCharToVal("01/01/2020", "D")
return
 


The above snippet gave result as 20/09/0090.

Compiled with Harbour+FWH1912

TIA
by Antonio Linares
Sun May 03, 2020 12:41 pm
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2020 (FWH 20.04)
Replies: 1
Views: 3419

New FTDN April/Abril 2020 (FWH 20.04)

... as FW_MemoEdit()

* Fix: Fixed RibbonBar bug reported by Silvio:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=38743&start=0

* Fix: uCharToVal( cDate, "D" ) in source/function/valtostr.prg:
This function is failing with monthname is preceded by a non-space
character like - or /.
http ...
by Silvio.Falconi
Sat Apr 25, 2020 9:26 am
Forum: FiveWin for Harbour/xHarbour
Topic: strange error for calculating days !!Resolved!!
Replies: 3
Views: 705

Re: strange error for calculating days

... is there ...

This morning I saw the dateTo is wrong
on a my function to update the dates after a modify I have these lines

local dStart:= uCharToVal(dDataIniziale, "D" )
local dEnd:= uCharToVal(dDataFinale, "D" )

If I select the from 10 July to 14 July

and the dEnd return me 14 March

I ...
by Silvio.Falconi
Wed Apr 08, 2020 2:59 pm
Forum: FiveWin for Harbour/xHarbour
Topic: uCharToVal
Replies: 9
Views: 1846

Re: uCharToVal

yes the problem is solved

i am trying to understand how to insert in my source.

Nice idea to implement date limits in datepick even if I really like your calendar created with xbrowse