Experimental listRegistry function

Jan Schenkel janschenkel at yahoo.com
Wed Sep 21 04:12:09 EDT 2011


Hi all,

In LiveCode 4.5, an experimental function 'listRegistry' was added.

I just tested the following in LiveCode 4.6.4 on Windows 7, but nothing happens.
Note that I tried both with and without a backslash at the end of the parentKey.


##
-- constant kColorsKey = "HKEY_CURRENT_USER\Control Panel\Colors\"
constant kColorsKey = "HKEY_CURRENT_USER\Control Panel\Colors"

on mouseUp
   local tColorKeys, tColorKey
   put empty into field 1
   put listRegistry(kColorsKey) into tColorKeys
   repeat for each line tColorKey in tColorKeys
      put tColorKey & tab & queryRegistry(tColorKey) & return after field 1
   end repeat
end mouseUp
##

It doesn't seem that I'm barred from reading the registry itself, since the following does work.

##
constant kColorKey = "HKEY_CURRENT_USER\Control Panel\Colors\ActiveBorder"

on mouseUp
   answer queryRegistry(kColorKey)
end mouseUp
##

Any ideas or suggestions?

TIA,

Jan Schenkel.

=====
Quartam Reports & PDF Library for LiveCode
www.quartam.com


=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)




More information about the Use-livecode mailing list