Difference: 0LASubrConvertFromBase64 (1 vs. 5)

Revision 52022-05-16 - MisaghKarimi

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

.CONVERT FROM BASE64

Changed:
<
<
_ This subroutine converts Base64 data to Appx raw data. _
>
>
This subroutine converts Base64 data to Appx raw data (Release 6.2.0 & higher).
 

Usage:

Line: 19 to 19
  <raw data> is the location to put the converted raw data(Required). This must be PASSed with Share "Y" to return the result.
Changed:
<
<
<base64 data> is the location of the base64 data to be convert to raw data (Required).
>
>
<base64 data> is the location of the base64 data to be convert to raw data (Required). base64 data cannot exceed 32000 characters.
  <length to encode> is the number of bytes to convert to raw (Required). This is an integer in the range of 1-32000.
Changed:
<
<
If you want to convert raw data to base64 data, see .CONVERT TO BASE64.
>
>
If you want to convert raw data to base64 data, see .CONVERT TO BASE64.
 

Comments:

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

Revision 42022-04-29 - BrianRyan

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

.CONVERT NUM TO HEX PR

>
>

.CONVERT FROM BASE64

 
Changed:
<
<
This subroutine converts a decimal number to a hex pair of alpha characters.
>
>
_ This subroutine converts Base64 data to Appx raw data. _
 
Changed:
<
<

>
>

 

Usage:

Changed:
<
<
    PASS        <hex pair>                FIELD           SHARE? Y
    PASS        <decimal_number>          FIELD           SHARE? N
    GOSUB   --- .CONVERT NUM TO HEX PR

>
>
    PASS        <raw data>                FIELD           SHARE? Y
    PASS        <base64 data>             FIELD           SHARE? N
    PASS        <length to encode>        FIELD           SHARE? N
    GOSUB   --- .CONVERT FROM BASE64

  * Check for errors
Changed:
<
<
IF --- .CONVERT NUM TO HEX PR NE
>
>
IF --- .CONVERT FROM BASE64 NE
 

Description:

Changed:
<
<
This subroutine converts a number to a hex pair of alpha characters. Both parameters are required, the subroutine will CANCEL if they are not PASSed.
>
>
This subroutine converts Base64 data to Appx raw data. All parameters are required, the subroutine will CANCEL if they are not PASSed.
 
Changed:
<
<
<hex_pair> returns the hexidecimal equivalent of <decimal_number> (Required). This must be PASSed with Share "Y" to return the result.
>
>
<raw data> is the location to put the converted raw data(Required). This must be PASSed with Share "Y" to return the result.
 
Changed:
<
<
<decimal_number> is the value you want converted (Required). This be an integer in the range 0-255.
>
>
<base64 data> is the location of the base64 data to be convert to raw data (Required).
 
Changed:
<
<
If you want to convert a string of characters to hexidecimal, see .CONVERT BYTES TO HEX. To convert a hexidecimal number to decimal, see .CONVERT HEX PR TO NUM.
>
>
<length to encode> is the number of bytes to convert to raw (Required). This is an integer in the range of 1-32000.

If you want to convert raw data to base64 data, see .CONVERT TO BASE64.

 

Comments:

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


<--/commentPlugin-->
Deleted:
<
<
-- PeteBrower - 2011-08-12
 \ No newline at end of file
Added:
>
>
-- BrianRyan - 2022-04-29

Revision 32012-02-10 - JeanNeron

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

.CONVERT NUM TO HEX PR

Line: 16 to 16
  This subroutine converts a number to a hex pair of alpha characters. Both parameters are required, the subroutine will CANCEL if they are not PASSed.
Changed:
<
<
<hex_pair> will contain the hexidecimal equivalent of <decimal_number> (Required). This must be PASSed with Share "Y" to return the result.
>
>
<hex_pair> returns the hexidecimal equivalent of <decimal_number> (Required). This must be PASSed with Share "Y" to return the result.
  <decimal_number> is the value you want converted (Required). This be an integer in the range 0-255.

Revision 22012-02-03 - JeanNeron

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

.CONVERT NUM TO HEX PR

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

Usage:

Line: 14 to 14
 

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 number to a hex pair of alpha characters. Both parameters are required, the subroutine will CANCEL if they are not PASSed.
 
Changed:
<
<
<hex_pair> identifies the field to return the hex pair result back into. Passing this parameter is required.
>
>
<hex_pair> will contain the hexidecimal equivalent of <decimal_number> (Required). This must be PASSed with Share "Y" to return the result.
 
Changed:
<
<
<decimal_number> Identifies the field or literal value that represents the decimal value to be converted. This must contain valid numeric characters. Passing this parameter is required.
>
>
<decimal_number> is the value you want converted (Required). This be an integer in the range 0-255.
 
Changed:
<
<
This subroutine sets a result value in the corresponding results Token field.
>
>
If you want to convert a string of characters to hexidecimal, see .CONVERT BYTES TO HEX. To convert a hexidecimal number to decimal, see .CONVERT HEX PR TO NUM.
 

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 NUM TO HEX PR

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


Usage:

    PASS        <hex pair>                FIELD           SHARE? Y
    PASS        <decimal_number>          FIELD           SHARE? N
    GOSUB   --- .CONVERT NUM TO HEX PR
     *       Check for errors
    IF      --- .CONVERT NUM TO HEX PR    NE

Description:

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

<hex_pair> identifies the field to return the hex pair result back into. Passing this parameter is required.

<decimal_number> Identifies the field or literal value that represents the decimal value to be converted. This must contain valid numeric characters. 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-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback