PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Patrick Harvey on April 28, 2005, 07:38:21 PM

Title: Need help with syntax - firefly 2.0
Post by: Patrick Harvey on April 28, 2005, 07:38:21 PM
Can someone please tell me why I get an error 516 when I compile this (inside a button click function)....

Dim a As Dword                                  
Let a=FF_GetRegistryDWord %hkey_current_user, "Control Panel\Desktop", "foregroundlocktimeout", 11

I have been trying for a week to read this registry value and cannot get this to work.  

Thanks

Patrick
Title: Re: Need help with syntax - firefly 2.0
Post by: TechSupport on April 28, 2005, 07:43:49 PM
Quote from: Patrick HarveyCan someone please tell me why I get an error 516 when I compile this (inside a button click function)....

Dim a As Dword                                  
Let a=FF_GetRegistryDWord %hkey_current_user, "Control Panel\Desktop", "foregroundlocktimeout", 11

I have been trying for a week to read this registry value and cannot get this to work.  

Thanks

Patrick
Hi Patrick,

I emailed you a couple of days about this with the suggestion to wrap the function in parenthesis. Try this:


a=FF_GetRegistryDWord( %hkey_current_user, "Control Panel\Desktop", "foregroundlocktimeout", 11)
Title: yes I tried that - but no luck....
Post by: Patrick Harvey on April 28, 2005, 07:50:49 PM
Hi Paul:

I tried it and got the same error....  please see screen snap below

(https://www.planetsquires.com/protect/forum/proxy.php?request=http%3A%2F%2Fwww.patricksarchive2.com%2Fpaul.jpg&hash=0ad9a55f404a80b718edf262694f5635338307de)[/img]
Title: Need help with syntax - firefly 2.0
Post by: TechSupport on April 28, 2005, 07:54:54 PM
hmmm.... right you are. Maybe I have the old version of the wrapper file in the last release. Arrrrrrrgh! I will get the latest file and email you. Sorry.