HexToInt

Top  Previous  Next

Prototype

 

intValue:=HexToInt(strHex)

 

Description

 

Convert in a integer a string containing an hexadecimal value.

 

Parameters

 

strHex: string containing an hexadecimal value.

 

 

Returned Value

 

intValue:  numeric value corresponding to hexadecimal value.

 

Notes

 

None.

 

Example

 

//It initializes a variable representing an hexadecimal number

Input:='F4';

 

//It converts variable in integer

IntInput:=HexToInt(Input);

 

//It logs conversion value

ApplicationLog('The hexadecimal number '+Input+' represent '+IntToStr(IntInput)+' in decimal notation');