PalHexToNumber

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber PalHexToNumber( SalString sHexValue )

The PalHexToNumber method converts a string value from hexadecimal to decimal number system and return it as a number.

Parameters

Name Description
SalString sHexValue Hexadecimal value. The string value using the hexadecimal number system that should be converted.

Returns

The value using decimal number system.

Example

Set nDecimal = PalHexToNumber( '0x07B' )
! nDecimal = 123
Set nDecimal = PalHexToNumber( 'FFFA'  )
! nDecimal = 65530
C# code
nLower = Int.PalHexToNumber("0x07B");
//nLower is 123
nLower = Int.PalHexToNumber("FFFA"); //nLower is 65530