Difference: 0LASubrConvertHexPrToNum (1 vs. 2)

Revision 22012-02-03 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.CONVERT HEX PR TO NUM

Changed:
<
<
This subroutine is called to convert a hex pair within an alpha field to the equivalent decimal integer value.
>
>
This subroutine converts a hex pair of alpha characters to a decimal number.
 

Usage:

Line: 15 to 15
 

Description:

Changed:
<
<
This subroutine must be passed a valid hex pair in the range of 00 to FF. Upper and lower case is accepted.
>
>
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.
 
Changed:
<
<
<decimal_number> identifies the field to return the decimal result back into. Passing this parameter is required.
>
>
<decimal_number> is decimal value of <hex_pair> (Required). This must be PASSed with Share "Y" to return the value.
 
Changed:
<
<
<hex_pair> Identifies the field or literal value that represents the hex pair to be converted. This must contain exactly 2 characters that are in the range of 00-FF. Passing this parameter is required.
>
>
<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.
 
Changed:
<
<
This subroutine sets a result value in the corresponding results Token field.
>
>
To convert a decimal number to a hex pair, see .CONVERT NUM TO HEX PR. To convert a string to hexidecimal, see .CONVERT BYTES TO HEX.
 

Comments:

Read what other users have said about this page or add your own comments.

Revision 12011-08-12 - PeteBrower

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.CONVERT HEX PR TO NUM

This subroutine is called to convert a hex pair within an alpha field to the equivalent decimal integer value.

Usage:

    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

Description:

This subroutine must be passed a valid hex pair in the range of 00 to FF. Upper and lower case is accepted.

<decimal_number> identifies the field to return the decimal result back into. Passing this parameter is required.

<hex_pair> Identifies the field or literal value that represents the hex pair to be converted. This must contain exactly 2 characters that are in the range of 00-FF. Passing this parameter is required.

This subroutine sets a result value in the corresponding results Token field.

Comments:

Read what other users have said about this page or add your own comments.

<--/commentPlugin-->

-- PeteBrower - 2011-08-12

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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