Navigation:  ThinBASIC Language > thinBasic Functions > String functions >

Bin_To_Hex$

Previous pageReturn to chapter overviewNext page

 

Description

 

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

 

Syntax

 

s = Bin_To_Hex$(StringBuffer)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

StringBuffer

String

No

String to be converted

 

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