In the on form create, why does this cause and error and how do I make this work, I want it to be on the form create paragraph.
with TRegistry.Create do
rootkey := HKEY_LOCAL_MACHINE;
if OpenKey('Software\Microsoft', False) then
StringKeys := Tstringlist.create;
For j := 0 to (StringValues.Count - 1) do ** ERROR OCCURS HERE ON STRINGVALUES
//Why does it give me the error and whats the best way around it if I want to
//run this in the form create paragraph?