SpD2X

This function performs a decimal to hexadecimal conversation. In contrast to D2X, spD2X can deal with ULONG values.

Syntax: hexVal = spD2X ( decVal [, [ type ] ] )

Parameters: decVal – the value to be converted

type – type of value. If specified, leading zeros are returned. To get uppercase letters, you have to specify the type in uppercase.

Table 1 spD2X value types

Returns: hexadecimal value

Example Code: (part of spSetAutoSleep example code) /* wininfo.cmd (spUtils Example Code) */ [...] SAY sp||'handle: '||ARG(2)||' (0x'||spD2X(ARG(2),'l')||')' [...]