Código Delphi [-] if(Ba->Caption=="Agregar") { Ba->Caption="Guardar"; DBApe->Text=""; DBApe->SetFocus(); DMAgenda->TCApellid->Append(); } else { Ba->Caption="Agregar"; DMAgenda->TCApellid->Insert(); DMAgenda->TCApellid->Post(); }
if(Ba->Caption=="Agregar") { Ba->Caption="Guardar"; DBApe->Text=""; DBApe->SetFocus(); DMAgenda->TCApellid->Append(); } else { Ba->Caption="Agregar"; DMAgenda->TCApellid->Insert(); DMAgenda->TCApellid->Post(); }