레지스터리 아래 이름과 데이타을 순번으로 알 수 있는 방법 좀 알고 싶습니다.
고수님의 답변을 기다리겠습니다. 밑의 소스는 그와 관련된 것된 델초보자라 직접실행해보니 에러만 뜨네요. 도와주세요.
procedure TForm1.DoLoop();
const
RegKey='SoftwareVB and VBA Program Settings현대해상기 타1';
var
StrList: TStrings;
I: Integer;
begin
Reg:= TRegistry.Create;
StrList:= TStrings.Create;
try
Reg.OpenKey(RegKey,False);
Reg.GetKeyNames(StrList);
for I := 0 to StrList.Count - 1 do
//DoSomething; // 여기에서 하고 싶은 일을 하면 되죠...
finally
Reg.Free;
StrList.Free;
end;
end;
어떤 에러인가요. 특별히 이상은 없는것 같은데...
혹시 undeclared identifier가 아닌지... uses절에 Registry유닛을 추가해주세요...
^^ 항상 즐코하세요.
김태영 wrote:
> 레지스터리 아래 이름과 데이타을 순번으로 알 수 있는 방법 좀 알고 싶습니다.
> 고수님의 답변을 기다리겠습니다. 밑의 소스는 그와 관련된 것된 델초보자라 직접실행해보니 에러만 뜨네요. 도와주세요.
>
>
> procedure TForm1.DoLoop();
> const
> RegKey='SoftwareVB and VBA Program Settings현대해상기 타1';
> var
> StrList: TStrings;
> I: Integer;
> begin
> Reg:= TRegistry.Create;
> StrList:= TStrings.Create;
> try
> Reg.OpenKey(RegKey,False);
> Reg.GetKeyNames(StrList);
> for I := 0 to StrList.Count - 1 do
> //DoSomething; // 여기에서 하고 싶은 일을 하면 되죠...
> finally
> Reg.Free;
> StrList.Free;
> end;
>
> end;
>