Cita:
Empezado por escafandra
Código:
A = StrToInt(EditA->Text);
Saludos.
|
Te entiendo, pero cuando vuelvo a cargar el form esta el dato anterior, no se actualiza en el codigo.
Código:
TAlquiler *Alquiler;
//---------------------------------------------------------------------------
__fastcall TAlquiler::TAlquiler(TComponent* Owner)
: TForm(Owner)
{
int BluRay = 22;
int BluRay3D = 25;
int DVD = 17;
editBluRay->Text = BluRay;
editBluRay3D->Text = BluRay3D;
editDVD->Text = DVD;
}
//---------------------------------------------------------------------------
void __fastcall TAlquiler::CierreAlquiler(TObject *Sender, TCloseAction &Action)
{
MenuPrincipal->Show();
}
//---------------------------------------------------------------------------
void __fastcall TAlquiler::btnActualizarClick(TObject *Sender)
{
int BluRay = StrToInt(editBluRay->Text);
}
//---------------------------------------------------------------------------
Capaz tenga que utilizar un txt.