download_man Posted May 24, 2009 at 05:51 PM Report #266937 Posted May 24, 2009 at 05:51 PM Boas, queria saber como posso converter uma string para hex no delphi. Como por exemplo converter 1AB para hexadécimal ou outro conteudo de uma edit. Abraço Obrigado
M6 Posted May 26, 2009 at 08:39 AM Report #267274 Posted May 26, 2009 at 08:39 AM Vê lá se é isto que tu queres: http://www.delphibasics.co.uk/RTL.asp?Name=IntToHex http://www.daniweb.com/forums/thread14886.html# 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar."
Jamq Posted May 28, 2009 at 06:31 PM Report #268060 Posted May 28, 2009 at 06:31 PM olá amigo não sei se já encontaste a resposta se não encontraste deixo-te uma sugestão. function StringParaHex(Valor: string): string; var i: Integer; begin Result := ''; for i := 1 to Length(Valor) do Result := Result + IntToHex(Ord(Valor[i]), 2); end; usa assim por ex. ShowMessage(StringParaHex('1AB')); cumps 😁
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now