Search found 10 matches: hextodec

Return to advanced search

Rutina para leer Gps

... STATIC Function ChkSum( cCad ) LOCAL c, nLen, nSum1, nSum2 nLen := AT( "*", cCad ) nSum1 := HexToDec( Substr( cCad, nLen +1, 2 ) ) // el checksum esta apartir de "*" nSum2 := Asc( Substr( cCad, 1, 1 ) ) // cogemos el primer caracter ...
by Busmatic_wpb
Sat Jul 22, 2017 1:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Rutina para leer Gps
Replies: 1
Views: 971

Test GPS Error en encontrado

... STATIC Function ChkSum( cCad ) LOCAL c, nLen, nSum1, nSum2 nLen := AT( "*", cCad ) nSum1 := HexToDec( Substr( cCad, nLen +1, 2 ) ) // el checksum esta apartir de "*" nSum2 := Asc( Substr( cCad, 1, 1 ) ) // cogemos el primer caracter ...
by Busmatic_wpb
Fri Jul 21, 2017 11:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test GPS Error en encontrado
Replies: 0
Views: 649

Re: :: Funciones ::

... Next Return cRet Static Function Hex2Serial(cHexSer) LOCAL cRet:="",i:=0 For i:=3 to 18 step 2 cRet:=cRet+chr(HexToDec(SUBSTR(cHexSer,i,2))) Next Return cRet Saludos
by mag071
Fri Mar 16, 2012 5:24 am
 
Forum: FiveWin para Pocket PC
Topic: :: Funciones ::
Replies: 4
Views: 1770

Re: Se necesita ayuda en el wiki !

... GlobalCompact() GlobalData() GlobalFree() GlobalGetAtom() GlobalLock() GlobalRealloc() GlobalSize() GlobalUnlock() HasResources() HelpSearch() HexToDec() HideCaret() HToNs() I2Hex() InportWord() InsertMenu() InterruptUnRegister() InvalidateRect() InvertRect() IsAnsi() IsAnsiLower() IsAnsiUpper() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5510

Re: First FWPPC App - Help :-)

Jeff, Please add this code to the bottom of your PRG. This solves these three unresolved externals: STR2HEX(), HEX2STR() and HEXTODEC(). #pragma BEGINDUMP #include <hbapi.h> #include <windows.h> static far BYTE bChar[] = "0123456789ABCDEF"; HB_FUNC( ...
by Antonio Linares
Wed Jan 07, 2009 11:16 pm
 
Forum: FiveWin for Pocket PC
Topic: First FWPPC App - Help :-)
Replies: 31
Views: 5332

First FWPPC App - Help :-)

... 1 ) != 0 nError = GetCommError( nComm ) MsgInfo( "FlushComm Error: " + Str( nError ) ) endif cDataread := space(1) Do while Alltrim(STR(HexToDec( Str2Hex( cDataread )))) <> "6" syswait(.1) WRITECOMM( nComm, HEX2STR("027002020803")) ReadComm( nComm , @cDataRead) ...
by Jeff Barnes
Wed Jan 07, 2009 1:45 pm
 
Forum: FiveWin for Pocket PC
Topic: First FWPPC App - Help :-)
Replies: 31
Views: 5332

... protection. But nevertheless it is very confusing if two functions with the same functionality return different values (comparing nSerialHD() and HexToDec() with VolSerial() and HexToNum() from xHarbour)
by StefanHaupt
Tue Nov 04, 2008 12:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error in function nSerialHD ()
Replies: 10
Views: 1902

Error in function HexToDec ()

Antonio,

the same error as in nSerialHD() is in HexToDec (cHex). If the cHex is to large, it returns negative values.

Can you please check this, too ?

Thanks
by StefanHaupt
Tue Nov 04, 2008 9:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error in function HexToDec ()
Replies: 1
Views: 355

Javier,

Prueba asi:

Chr( HEXTODEC( cHexNumero ) )

por ejemplo:

MsgInfo( HexToDec( "FF" ) )
by Antonio Linares
Fri Aug 15, 2008 11:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Caracteres Decimal y Hexadecimal
Replies: 2
Views: 520

Re: Sumar muchos número en Hexadecimal

softruz wrote:Muy buenas foro, ¿alguien me podria decir como puedo sumar muchos numero en hexadecimal ?

Una forma:

nTotal := 0
AEval( aHex, {|h| nTotal += HexToDec( h ) } )
?L2Hex( nTotal )

Saludos.

Manuel Mercado
by mmercado
Tue May 13, 2008 9:41 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sumar muchos número en Hexadecimal
Replies: 1
Views: 430

Return to advanced search