I am trying to infer the value of TByte as its corresponding hexadecimal representation in AnsiString.
Example: TByte - 0x4F AnsiString: "4F" (two characters, a 4 and F)
I know the StringOf function, but converts it to a "displayed" character.
Is there any decent feature, or does anyone have a good idea how to quickly implement this?
Thank you in advance :)
I would pass it to the byte and pass it to SysUtils.IntToHex.
, Turbo Pascal SysUtils Hex .
, Delphi D2010 format:
lByteAsHex := format('%.2x',[AByte]);
.2 Precision , .
:
lIntAsHex = format('%x',[AInt]);
( int64), , format(%x,[10]) 'A', format('%.2x',[10] '0A'
format(%x,[10])
format('%.2x',[10]
Source: https://habr.com/ru/post/1759114/More articles:C # Differences between different types of System.Collection (.Generic) - collectionsMagazine Dump for Visually Attractive Document Tool for Subversion? - svnCreating BizTalk 2006 Software Adapters - scriptingBuild in asp.net - c #Rotating Cubes in XNA - rotationRelationship between Sales Organization, Sales Office and Sales Group in SAP - saphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1759116/iphone-html-question-access-to-body-only&usg=ALkJrhiSosATLia8_XmErHtyCDovetL02gMagento Checkout - Unsecure Image - magentosed or perl + insert text between two lines - sedQuestion about eval () in javascript ... why is it evil and how can I accomplish the same thing without using it? - javascriptAll Articles