PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

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 buffer into a displayable hexadecimal string (for example: "4A 5B 00").
This function is mainly used to check the content of a buffer byte by byte.
Note: To convert an hexadecimal string into buffer, use HexaToBuffer .
Versions 18 and later
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Windows Store apps mode.
WINDEVJava This function is now available for the Java applications.
WINDEV MobileAndroid This function is now available for the Android applications.
WINDEV MobileAndroid Widget This function is now available in Android Widget mode.
New in version 18
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Windows Store apps mode.
WINDEVJava This function is now available for the Java applications.
WINDEV MobileAndroid This function is now available for the Android applications.
WINDEV MobileAndroid Widget This function is now available in Android Widget mode.
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Windows Store apps mode.
WINDEVJava This function is now available for the Java applications.
WINDEV MobileAndroid This function is now available for the Android applications.
WINDEV MobileAndroid Widget This function is now available in Android Widget mode.
Versions 19 and later
WINDEV MobileiPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 19
WINDEV MobileiPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEV MobileiPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEV MobileWindows Mobile This function is now available for the Windows Mobile applications.
New in version 21
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEV MobileWindows Mobile This function is now available for the Windows Mobile applications.
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEV MobileWindows Mobile This function is now available for the Windows Mobile applications.
Versions 22 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
New in version 22
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Example
// Button click
s is Buffer = fLoadText(EDT_FILENAME)
EDT_DUMP = BufferToHexa(s)
s is UNICODE string = "abdcefghijkl"
Trace(BufferToHexa(s))
// displays:

// 61 00 62 00 64 00 63 00 65 00 66 00 67 00 68
// 69 00 6A 00 6B 00 6C 00
s is UNICODE string = "Pletopabo"

// Displays 50 00 6C 00 E9 00 74 00 6F 00 70 00 61 00 62 00<\r><\n>6F 00
Trace(BufferToHexa(s, 1))
// Displays 0050 006C 00E9 0074 006F 0070 0061 0062<\r><\n>006F
Trace(BufferToHexa(s, 2))
// Displays 5000 6C00 E900 7400 6F00 7000 6100 6200<\r><\n>6F00
Trace(BufferToHexa(s, 2, BigEndian))  
// Displays 006C0050 007400E9 0070006F 00620061<\r><\n>6F 00
Trace(BufferToHexa(s, 4))
// Displays 50006C00 E9007400 6F007000 61006200<\r><\n>6F 00
Trace(BufferToHexa(s, 4, BigEndian))
Syntax
<Result> = BufferToHexa(<Buffer to Convert> [, <Nb Bytes per Word> [, <Nb Bytes per Line>]])
<Result>: Character string
Character string in hexadecimal format.
<Buffer to Convert>: Buffer
Buffer to Use. This parameter can also correspond to an Ansi or Unicode string.
<Nb Bytes per Word>: Integer
Number of bytes displayed per word. This parameter 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.
<Nb Bytes per Line>: Integer
Number of bytes displayed before going to the next line. By default this number is set to 16.
  • After each <Nb Bytes Per Line> a carriage Return (CR) is added to the result string.
  • If <Nb Bytes Per Line> is les than <Nb Bytes Per Word>, the Carriage Return (CR) character will be added every <Nb Bytes Per Word>.
By default, the grouping is done in Little-Endian format (most significant byte at the end, like x86).
To group value in Big-endian format:
  • directly use the BigEndian constant.
  • add the BigEndian constant to the <Nbr Bytes Per Line> value.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment