Al compilar me da error con el operador ^^ ¿como puedo solucionar la siguiente función?
function ...
cHex := ""
cChar := ""
For Each cChar IN cResposta
if HB_EnumIndex( cChar ) < Len( cResposta )
if HB_EnumIndex( cChar ) == nStartEvaluate
cHex := cChar
endif
cHex := cHex ^^ cResposta[ HB_EnumIndex( cChar ) + 1 ]
endif
next
return cHex
operator ^^ como puedo solucionar?
- leandro
- Posts: 1752
- Joined: Wed Oct 26, 2005 2:49 pm
- Location: Colombia
- Has thanked: 38 times
- Been thanked: 10 times
- Contact:
Re: operator ^^ como puedo solucionar?
Ya intentaste con el doble asterisco? **
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 24.09 ] [ xHarbour 64 bits) ]
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 24.09 ] [ xHarbour 64 bits) ]
- Antonio Linares
- Site Admin
- Posts: 42552
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 79 times
- Contact:
Re: operator ^^ como puedo solucionar?
Sr Antonio, não entendo muito bem a função, mas acredito que sim.
Seria referente esta linha de código:
cHex := cHex ^^ cResposta[ HB_EnumIndex( cChar ) + 1 ]
static function BitXorString( cResposta, nStartEvaluate )
Local cHex, cChar
Default nStartEvaluate := 1
cHex := ""
cChar := ""
For Each cChar IN cResposta
if HB_EnumIndex( cChar ) < Len( cResposta )
if HB_EnumIndex( cChar ) == nStartEvaluate
cHex := cChar
endif
cHex := cHex ^^ cResposta[ HB_EnumIndex( cChar ) + 1 ]
endif
next
return cHex
Seria referente esta linha de código:
cHex := cHex ^^ cResposta[ HB_EnumIndex( cChar ) + 1 ]
static function BitXorString( cResposta, nStartEvaluate )
Local cHex, cChar
Default nStartEvaluate := 1
cHex := ""
cChar := ""
For Each cChar IN cResposta
if HB_EnumIndex( cChar ) < Len( cResposta )
if HB_EnumIndex( cChar ) == nStartEvaluate
cHex := cChar
endif
cHex := cHex ^^ cResposta[ HB_EnumIndex( cChar ) + 1 ]
endif
next
return cHex
- Antonio Linares
- Site Admin
- Posts: 42552
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 79 times
- Contact:
Re: operator ^^ como puedo solucionar?
Entonces puedes usar la función NumXor() de Harbour:
cHex := Chr( NumXor( Asc( cHex ), Asc( cResposta[ HB_EnumIndex( cChar ) + 1 ] ) ) )
cHex := Chr( NumXor( Asc( cHex ), Asc( cResposta[ HB_EnumIndex( cChar ) + 1 ] ) ) )
- Antonio Linares
- Site Admin
- Posts: 42552
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 79 times
- Contact: