Ver Mensaje Individual
  #2  
Antiguo 26-02-2007
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 24
seoane Va por buen camino
En vez de usar:
Código Delphi [-]
  Showmessage(HashTable.ValueFromIndex[Indice]);

Debes utilizar:
Código Delphi [-]
  Showmessage(HashTable[Indice]);

Por otro lado, si quieres sacar ventaja de utilizar un THashedStringList debes usar el método IndexOf en vez de Find, de lo contrario no encontraras ninguna diferencia con un TstringList:
Código Delphi [-]
Indice:= HashTable.IndexOf('juancito');
  if Indice <> -1 then
    Showmessage(HashTable[Indice]);
Responder Con Cita