Bin_To_Hex$

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > String functions >

Bin_To_Hex$

 

Description

 

Converts a sequence of bytes into a string that is its hexadecimal representation.

 

Syntax

 

s = Bin_To_Hex$(StringBuffer [, sepBytes [, sepStr]])

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

StringBuffer

String

No

String to be converted

sepBytes

Number

Yes

If present, output string will be separated every sepBytes bytes using sepStr string

sepStr

String

Yes

String to be used when requested to separate output bytes.

If not indicated, default string space will be used

 

Remarks

 

Each byte present into the input string is converted into 2 bytes representing it hexadecimal representation.

For example "Aa" string will be converted into "4161" string

 

Restrictions

 

See also

 

Hex_To_Bin$, Bin_To_Hex$

 

Examples