Search found 474 matches: round

Return to advanced search

Numeric comparisons

... Soc.Security Medicare Withholding Total Amount 1172.0200 275.2700 839.0600 2291.3500 If I get the VAL() of each database field from the above, round them to 2 decimals, then add them up, I get the result 2291.35 (CORRECT) !!! Now, the second record in the database contains these: Soc.Security ...
by E. Bartzokas
Wed Sep 27, 2006 7:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric comparisons
Replies: 9
Views: 2759

... FAR *pv) { return BmiColorCount((LPBITMAPINFOHEADER)pv); } // DibNumColors static size_t RowBytes(int bpp, int w) { // bytes per image row - round up to DWORD return (bpp * w + 31) / 32 * 4; } static long BmiRowBytes(const LPBITMAPINFOHEADER lpbi) { return RowBytes(lpbi->biBitCount, lpbi->biWidth); ...
by areang
Mon Aug 07, 2006 3:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Please teach me about FWH and xHarbour
Replies: 3
Views: 4262

Problema con oFile:End() en comandos FTP

... ] ) if Len( aFiles ) > 0 AAdd( aSizes, aFiles[ 1 ][ 2 ] ) nTotSize += ATail( aSizes ) else AAdd( aSizes, 0 ) endif SysRefresh() next nTotSize:=round(nTotSize,0) oMeter2:nTotal = nTotSize for n = 1 to Len( aSource ) hTarget = FCreate( aTarget[ n ] ) oFile = TFtpFile():New( aSource[ n ], oFTP ...
by carlosortiz
Thu Jul 27, 2006 1:54 pm
 
Forum: FiveWin para CA-Clipper
Topic: Problema con oFile:End() en comandos FTP
Replies: 4
Views: 1335

Antonio's sample is working fine. Now, to round it up: how to save the cropped image to disk? Sorry for such a dumb question, but I still have to come to terms with all this stuff of Device Contexts and so on...
Thanks
Rafael
by Rafael Clemente
Sat Apr 01, 2006 10:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Croping a BMP image
Replies: 7
Views: 1702

... ::vUnimed == "002" IF ::vGet[14] > 0 ::vGet[08] := ::vGet[14] ELSE ::vGet[08] := 1 ENDIF ::vGet[07] := ::vGet[08] ::vGet[08] := 0 ::vGet[10] := Round( ::vGet[07] * ::vGet[09], 0 ) OTHERWISE ::vGet[10] := Round( ::vGet[08] * ::vGet[09] , 0 ) ENDCASE ELSE DO CASE CASE ::vUnimed == "002" ::vGet[08] ...
by un_jeepero
Sat Mar 18, 2006 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se cuelga la app con array
Replies: 13
Views: 4572

How to Draw Box, Rectange and print BMP ?

Hello,

I have to draw round boxes / rectangle and print BMP on an invoice. How can I do the same ? I used to achieve the same using Win32Prn() in xHarbour.

I could not find the solution in samples\Reports.

Can somebody guide me ?

TIA
Milan.
by Milan Mehta
Wed Mar 08, 2006 3:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to Draw Box, Rectange and print BMP ?
Replies: 2
Views: 740

... 0xAF 1 #define LTRIM 0xB0 1 #define MAX 0xB1 1 #define MIN 0xB2 1 #define MODULUS 0xB3 1 #define MONTH 0xB4 1 #define REPLICATE 0xB5 1 #define ROUND 0xB6 1 #define SECONDS 0xB7 1 #define SPACE 0xB8 1 #define QSQRT 0xB9 1 #define STR1 0xBA 1 #define STR2 0xBB 1 #define STR3 0xBC 1 #define SUB2 ...
by Antonio Linares
Fri Jan 27, 2006 1:18 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: maquinas virtuales - virtual machines
Replies: 5
Views: 1769

Problem with application terminating

... := aFolder[nZ] nHan := ADIR( cFolder + cMask ) DECLARE aEdi[nHan] ADIR( cFolder + cMask, aEdi ) FOR nY=1 TO nHan // Message... cSay := LTRIM( STR( ROUND( (nY/nHan)*100, 0), 3) ) + "% Complete..." + cEol cSay += "Total = " + LTRIM(STR(nHan ,9)) + cEol cSay += "Files = " + LTRIM(STR(nFile,9)) + cEol ...
by cdmmaui
Fri Oct 28, 2005 10:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with application terminating
Replies: 1
Views: 1928

... columna Abonos->CodArt, //cuarta columna LEFT(Abonos->Nombre,39), //quinta columna STR(Abonos->Cantidad,8,2), //_ columna TRANSFORM(ROUND(Abonos->Precio*(1+IIF(!TipImpu->Discrimina.AND.TipMov->Calc_Iva=="SI ",(Abonos->PorGravado/100)*(TipImpu->PorIva/100+TipImpu->PorIvaPlus/100),0))+(IIF(!TipImpu->Discrimina,Abonos->PrecVta*Abonos->PorInterno/100,0)),_REDONDEO),"@Z ...
by Leonor Gonzalez
Mon Oct 24, 2005 3:45 pm
 
Forum: FiveWin for CA-Clipper
Topic: clase twbrowse
Replies: 7
Views: 3237
Previous

Return to advanced search