PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts a string with hexadecimal bytes to a binary buffer.
Remark: To convert a buffer to a hexadecimal string, use BufferToHexa.
Example
s is UNICODE string = "abdcefghijkl"
buf is Buffer = BufferToHexa(s)
 
s2 is UNICODE string = HexaToBuffer(buf)
// s2 = s
Syntax
<Result> = HexaToBuffer(<Hexadecimal value> [, <Nb bytes per word> [, <Option>]])
<Result>: Buffer
Conversion result.
<Hexadecimal value>: Character string (with quotes)
Hexadecimal value to convert.
<Nb bytes per word>: Optional integer or constant
Format for grouping values in <Hexadecimal value>. Can correspond to:
  • 1 (default value): the values are grouped by byte.
  • 2: the values are grouped by word of 2 bytes.
  • 4: the values are grouped by double word of 4 bytes.
  • the NoGrouping constant: no grouping will be done. All hexadecimal codes are written without spaces in the <Hexadecimal value> parameter. Example: 61002345A1.
<Option>: Optional Integer constant
By default, <Hexadecimal value> is grouped according to the Little-Endian format (most significant bytes at the end, like in x86).
To manage a grouping in Big-Endian format, use the BigEndian constant.
Business / UI classification : Neutral code
Component : wd260std.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment