Overture Search the Web.
Type it and go!
 
 
 
 

4Test Tips - SYS_SetRegistryValue Function

SYS_SetRegistryValue function needs hexadecimal input string

The last input parameter of the SYS_SetRegistryValue function is a STRING parameter that expects string data.  When you know the exact value to pass it is simple to provide it. If you have an INTEGER representation of what you want, you will need to convert it.

TestMap Extensions Solution - use the TmStrBaseN function.

INTEGER iValue    // holds the value to be converted
STRING sHexValue  // gets the converted value
sHexValue = "REG_DWORD: 0x"+TmStrBaseN(iValue,16)
SYS_SetRegistryValue(iKey,sPath,sItem,sHexValue)

 
 

Send questions or comments about this web site to: webmaster@TestMap.com
Copyright © 1998,2001 Charles B. Hedstrom