Tema: eventos.
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/03/2006, 10:59
Avatar de juanutcm
juanutcm
Usuario no validado
 
Fecha de Ingreso: marzo-2005
Mensajes: 194
Antigüedad: 19 años, 1 mes
Puntos: 0
Mira podrias utilizar esto asi para cambiar el caption del boton es decir el nombre:

obj.conectar 'conecta a la bd
obj.patente = txtPatente.text ' cargo la property
obj.BuscarPatente ' busca la patent y llena una variable boolean global existe
if obj.ExistePatente then
Command1.Caption="Modificar"
else
Command1.Caption="Agregar"
end if


Ojala te sirva...
Saludos