Ver Mensaje Individual
  #4  
Antiguo 23-04-2006
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
La propiedad ActiveControl de un formulario apunta al control que tenga el foco. Entonces yo haría algo como:

Código Delphi [-]
if (ActiveControl is TEdit) then
  dato := TEdit(ActiveControl).Text;

// Saludos
Responder Con Cita