Search found 24 matches: ndec

Searched query: ndec

by JoséQuintas
Mon Feb 17, 2025 2:26 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Text scroll and time graph
Replies: 4
Views: 758

Re: Text scroll and time graph

... SetColor( cColorOld )
RETURN Nil

FUNCTION SetColorMensagem()
RETURN "W/N"

FUNCTION SetColorFocus()
RETURN "W/GR+"

FUNCTION PicVal( nLen, nDec )
LOCAL cPicture
hb_Default( @nDec, 0 )
cPicture := Replicate( "9", nLen )
cPicture := Ltrim( Transform( Val( cPicture ), "999,999,999,999,999 ...
by TimStone
Tue Jul 16, 2024 5:45 am
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric Comparison
Replies: 6
Views: 1082

Re: Numeric Comparison

First nDec is undefined, but even if I give it a value ( ie. 2 ), it still does not do the replace.

I think the issue is with the second method in my post which converts the number to a string, and I don't see how that can get a match with a numeric field.

All other data types work fine, but not the ...
by Silvio.Falconi
Tue Mar 24, 2020 6:18 pm
Forum: FiveWin for Harbour/xHarbour
Topic: fwnumFormat ( where is the documentation ?)
Replies: 7
Views: 1159

Re: fwnumFormat ( where is the documentation ?)

thanks run ok as you can see

Image

I set 7 nlen 2 ndec
by nageswaragunupudi
Tue Mar 24, 2020 2:38 pm
Forum: FiveWin for Harbour/xHarbour
Topic: fwnumFormat ( where is the documentation ?)
Replies: 7
Views: 1159

Re: fwnumFormat ( where is the documentation ?)

TRANSFORM( nValue, NUMPICT( nLen, nDec, nil, nil, nil, .t. ) )
by nageswaragunupudi
Tue Mar 24, 2020 6:02 am
Forum: FiveWin for Harbour/xHarbour
Topic: fwnumFormat ( where is the documentation ?)
Replies: 7
Views: 1159

Re: fwnumFormat ( where is the documentation ?)

This is not necessary.
You can do this using FWNumFormat() and NUMPICT( nLen, nDec, ... )

function temptest()   local cPic1, cPic2   local nVal := 1234567.89   FWNumFormat( "E", .t. )   cPic1 := NUMPICT( 10, 2 )   cPic2 ...
by solving
Wed Nov 21, 2018 11:03 am
Forum: All products support
Topic: Fatturazione Elettronica
Replies: 91
Views: 82835

Re: Fatturazione Elettronica

la funzione Dec2Hex(nDec,lPad) e' ottima , quindi trasformo in esadecimale
massimo 1.048.575 valori possibili.

per curiosità stavo provando anche quest'altra soluzione :
STATIC FUNCTION Renum()LOCAL aList := {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',; 'A', 'B', 'C', 'D', 'E ...
by Silvio.Falconi
Tue Jan 16, 2018 11:24 am
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse or Report Bug
Replies: 10
Views: 2158

Re: Xbrowse or Report Bug

there is a bug on harbour
not run round function
but now I tried with
#xtranslate round(<nVal>,<nDec>) => val(str(<nVal>,20,<nDec>))
and run ok

converting my applications to Harbor made me waste only a lot of precious time
by Silvio.Falconi
Tue Jan 16, 2018 11:11 am
Forum: FiveWin for Harbour/xHarbour
Topic: problem with a calculation
Replies: 8
Views: 1507

Re: problem with a calculation

there is a bug on harbour
not run round function
but now I tried with
#xtranslate round(<nVal>,<nDec>) => val(str(<nVal>,20,<nDec>))
and run ok
by Otto
Wed Nov 29, 2017 1:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: problem with a calculation
Replies: 8
Views: 1507

Re: problem with a calculation

Hello Silvio,
have you seen this line:
#xtranslate round(<nVal>,<nDec>) => val(str(<nVal>,20,<nDec>)) ?

Best regards,
Otto
by nageswaragunupudi
Fri Sep 15, 2017 12:50 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase FWH 17.08 : Datas and Methods
Replies: 1
Views: 2033

TDatabase FWH 17.08 : Datas and Methods

... and opened.
If called by an already created object, creates dbf file.

4. Activate() Same as ::Use()

5. AddCol( cCol, uExpr, cType, nLen, nDec, cPic, cTag ) --> nNewCol
Creates a new virtual (calculated) column. uExpr can be character expression or a codeblock. Column name (cCol) can have ...
by jmartial
Fri Sep 05, 2014 7:05 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda FWH 2006 xHB a FWH 2014 Harbour
Replies: 5
Views: 1196

Ayuda FWH 2006 xHB a FWH 2014 Harbour

... cType$"C" .OR. cType$"M"
x := comillas( "%"+Alltrim( x )+"%" )

Case cType == "N"
x := if(valtype(x)="C",val(x),x)
x := alltrim(Str( x, nLen, nDec ))

Case cType == "D"
TRY
if Empty(x)
x := "null"
else
x := comillas(if(valtype(x)="C", x, DtoS(x)))
endif
CATCH
msginfo( "Se ha encontrado ...
by cnavarro
Thu Oct 03, 2013 7:14 pm
Forum: Off Topic / Otros temas
Topic: Empezando con ADO
Replies: 48
Views: 23858

Re: Empezando con ADO

... un array con:
{ oCat:Tables( i ):Columns( j ):Name , ; // Nombre de la Tabla
cTipo, ; // Tipo de campo -> Estilo DBF
nLen, ; // Longitud
nDec, ; // Decimales
Upper(cTipoEx), ; // Tipo de Campo -> ADO
nTipo } ) // Nº del Tipo de Campo -> ADO

2.- He creado la tabla a partir de una ...
by noe aburto
Tue Dec 06, 2011 4:56 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Error generar FIVEHX.LIB
Replies: 0
Views: 525

Error generar FIVEHX.LIB

... 37) Error E0030 Syntax error: "syntax error at 'NLEN'"
c:\autosys\prgs\fwh\source\classes\field.prg(38) Error E0030 Syntax error: "syntax error at 'NDEC'"

4 errors

No code generated


c:\autosys\prgs\fwh\source\winapi\net.c
c:\autosys\prgs\bcc582\bin\bcc32.exe -tWM -c -q -O2 -Ic:\autosys\prgs\xH121 ...
by nageswaragunupudi
Mon Jul 25, 2011 12:15 am
Forum: FiveWin for Harbour/xHarbour
Topic: PICTURE IN XBROWSE
Replies: 2
Views: 605

Re: PICTURE IN XBROWSE

... field in customer database, the format xbrowse automatically uses is : "@E 99,999,999.99", because the field's length is 9 and decimals are 2. XBrowse adds 2 to the length to accommodate totals.

If you want to derive a picture you can use FWH function
NUMPICT( nLen, nDec, nil, lComma, lDisplayZeros )
by Antonio Linares
Thu Feb 25, 2010 10:00 am
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2010 (10.2)
Replies: 4
Views: 4417

New FTDN February/Febrero 2010 (10.2)

... function. This method
enables xbrowse to toggle ascending and descending orders.
(c) New Method
AddCol( cColName, bBlock, [cType], [nLen], [nDec], [cPic], [cTag ] ) --> nColPos
for creationg of Calculated Columns.
Assuming that the DBF contains fields QUANTITY and RATE, we can create a ...