5
I have Form 1 and it has a field that in the action onExit I search the code in the bank and if not find I present a message if you want to register a product. If you open Form 2, now I’m not able to take the generated field and send it to Form 1, follow the template:
with form do
begin
form:=Tfrm_formulario2.Create(Application);
Centraliza_Form(form);
form.ShowModal;
if(form.ShowModal=mrYes)then
begin
campo.campos^[2].valorInteiro:= form.campoCodigo.AsInteger;
end;
Release;
end
In form 2 in the save button action I want the screen to close and return the value of the fieldCodigo, follow the code:
ModalResult := mrYes;
Vlw Junior, creating the global variable function right Aki :D
– EA.Jsp.Android