I am trying to read a Dword value from the registry I can get the value out but I an unable to convert it into a readable number.
I am using:
put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Software\ClientID")
Which outputs in livecode as encoded text how do I convert this back into a integer
Registry query
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Registry query
put format("%d", 0x7eba)
-
- Posts: 67
- Joined: Fri Jun 12, 2015 9:42 am
Re: Registry query
Only problem is it is returned not as HEX but as a string
Re: Registry query
Hi,rblackmore245 wrote: ↑Fri Jan 12, 2018 11:27 amOnly problem is it is returned not as HEX but as a string
One trick is to add 0 to your string.
Code: Select all
put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\.......") into theValue
put format( "%d", theValue + 0 )
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!