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.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Java This function is now available for Java applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Java This function is now available for Java applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Java This function is now available for Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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