---+ .CONVERT HEX PR TO NUM _This subroutine converts a hex pair of alpha characters to a decimal number._ %TOC% ---++ Usage: <pre><pre> PASS <decimal_number> FIELD SHARE? Y PASS <hex pair> FIELD SHARE? N GOSUB --- .CONVERT HEX PR TO NUM * Check for errors IF --- .CONVERT HEX PR TO NUM NE </pre> </pre> ---++ Description: This subroutine converts a hex pair of alpha characters to a decimal number. Both parameters are required, the subroutine will CANCEL if they are not PASSed. <decimal_number> is decimal value of <hex_pair> (Required). This must be PASSed with Share "Y" to return the value. <hex_pair> is the hex pair you want converted to decimal (Required). This must contain exactly 2 characters that are in the range of 00-FF. To convert a decimal number to a hex pair, see [[0LASubrConvertNumToHexPr][.CONVERT NUM TO HEX PR]]. To convert a string to hexidecimal, see [[0LASubrConvertBytesToHex][.CONVERT BYTES TO HEX]]. ---++ Comments: _Read what other users have said about this page or add your own comments._ %COMMENT% -- Main.PeteBrower - 2011-08-12
This topic: Main
>
WebHome
>
APPX510Features
>
APPXRuntimeSubroutineAPI
>
0LASubrConvertHexPrToNum
Topic revision: r2 - 2012-02-03 - JeanNeron
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback