Fórum Acessar registro! #202364
20/12/2003
0
ola pessoal gostaria de acessar um valor no registro no view source do meu projeto...??
e se o valor for por exemplo 10 ele nao executa a aplicacao teria como..??
e se o valor for por exemplo 10 ele nao executa a aplicacao teria como..??
Zacca
Curtir tópico
+ 0
Responder
Posts
21/12/2003
Marcelo.l
Tente isto
Em USES declare Registry
try
Reg := TRegistry.Create;
if Reg.OpenKey(´\Software\MeuPrograma´, True) then
begin
if Reg.ValueExists(´Contador´) then
iCount := Reg.ReadInteger(´Contador´);
end;
finally
Reg.Free;
end;
if icount >= 10 Then Halt(1);
Em USES declare Registry
try
Reg := TRegistry.Create;
if Reg.OpenKey(´\Software\MeuPrograma´, True) then
begin
if Reg.ValueExists(´Contador´) then
iCount := Reg.ReadInteger(´Contador´);
end;
finally
Reg.Free;
end;
if icount >= 10 Then Halt(1);
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)