Search found 22 matches: ndec

Return to advanced search

Re: fwnumFormat ( where is the documentation ?)

thanks run ok as you can see

Image

I set 7 nlen 2 ndec
by Silvio.Falconi
Tue Mar 24, 2020 6:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: fwnumFormat ( where is the documentation ?)
Replies: 7
Views: 870

Re: fwnumFormat ( where is the documentation ?)

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

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 := ...
by nageswaragunupudi
Tue Mar 24, 2020 6:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: fwnumFormat ( where is the documentation ?)
Replies: 7
Views: 870

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', ...
by solving
Wed Nov 21, 2018 11:03 am
 
Forum: All products support
Topic: Fatturazione Elettronica
Replies: 91
Views: 63497

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:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse or Report Bug
Replies: 10
Views: 1701

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 Silvio.Falconi
Tue Jan 16, 2018 11:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem with a calculation
Replies: 8
Views: 1356

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 Otto
Wed Nov 29, 2017 1:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem with a calculation
Replies: 8
Views: 1356

TDatabase FWH 17.08 : Datas and Methods

... created 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 ...
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: 1782

Ayuda FWH 2006 xHB a FWH 2014 Harbour

... "%"+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( ...
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: 1044

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 cnavarro
Thu Oct 03, 2013 7:14 pm
 
Forum: Off Topic / Otros temas
Topic: Empezando con ADO
Replies: 48
Views: 17893

Error generar FIVEHX.LIB

... 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\include;c:\autosys\prgs\bcc582\include;c:\autosys\prgs\fwh\include ...
by noe aburto
Tue Dec 06, 2011 4:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error generar FIVEHX.LIB
Replies: 0
Views: 494

Re: PICTURE IN XBROWSE

... 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 nageswaragunupudi
Mon Jul 25, 2011 12:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PICTURE IN XBROWSE
Replies: 2
Views: 547

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 ...
by Antonio Linares
Thu Feb 25, 2010 10:00 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2010 (10.2)
Replies: 4
Views: 3837

Re: Un ejemplo de MySql+Sql+xHarbour

... //Esta funcion permite manejar las tablas aun sin datos //----------------------------------------- Function MyCampo(oBjeto, nCampo, nEnt, nDec) local cCampo, cRet, nCol, nCont, cField, nPos If VALTYPE(nCampo) = "C" // vino el nombre de un campo nCampo := ALLTRIM(nCampo) nPos ...
by FranciscoA
Fri Jun 05, 2009 6:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un ejemplo de MySql+Sql+xHarbour
Replies: 7
Views: 3312

Re: How to compare two values

... Otto, I think You have to use the ROUND()-Function for exact results. Some samples : SET DECIMALS TO 2 SET FIXED ON // Function ROUND( nValue, nDec ) => rounded // nDec = how many Dec. // Negative = round to 10, 100 ...... ROUND( 10.4, 0 ) => Result : 10.00 ROUND( 10.5, 0 ) => Result ...
by ukoenig
Thu Jan 15, 2009 12:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to compare two values
Replies: 13
Views: 2588
Next

Return to advanced search