Link to home
Start Free TrialLog in
Avatar of kevinward66
kevinward66

asked on

reading registry

how can i read a FULL folder out of the reqistry into a memo in code

ie

i want to read the last 25 urls typed into a memo and don't want to go through the process of reading one at a time!!!
Avatar of edey
edey

hmmm, off hand I'd think you'd do something like (warning, on-the-fly-pseudo-code ahead):

var
 reg : TRegistry;
 ix : integer;
 values : TStringList;
begin
 reg := TRegistry.create(self);
//set reg to root key, & open desired key here
 values := TStringList.create;
 reg.getValueName(values);

 for ix := 0 to values.count-1 do
  memo1.lines.add(reg.readString(values[ix]));

 reg.close;
 reg.free;
 values.free;
end;


GL
Mike
ASKER CERTIFIED SOLUTION
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kevinward66

ASKER

thanks this is EXACTALLY what i wanted!!!

once again thanks