Forum > Spanish

Como convertir valor hexadecimal a su valor ascii

<< < (2/2)

crisares:
Gracias a todos... ya logre mostrar el resultado.. lo hice de otra manera.
Les muestro como...


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---varwpin,w:word;wpinf:string;Begin                MPHex.ReadBuffer(wpin,50,sizeof(w));//obtengo los 2 bytes del buffer en variable tipo word        wpinf:= format( '%1:d' ,[50,wpin]);//paso a decimal el resultado        txtpin.Text:=wpinf;//muestro resultadoend;  

astrocar:
solo usas chr(el componente) y listos claro esta que tienes que ir acumulando
saludos

Navigation

[0] Message Index

[*] Previous page

Go to full version