Jump to content

Data exchange between frames


artem_niko

Recommended Posts

Good afternoon!

Interested in this question.
Is it possible to organize (if "yes", how) data exchange between frames as well as between forms?
I tried using a generic DataModule but didn't work.
The essence is simple: there is a frame, we press the button, another frame opens. I need to transfer data to this opened, second frame, for example, a string value.

Link to comment
Share on other sites

5 hours ago, artem_niko said:

Good afternoon!

Interested in this question.
Is it possible to organize (if "yes", how) data exchange between frames as well as between forms?
I tried using a generic DataModule but didn't work.
The essence is simple: there is a frame, we press the button, another frame opens. I need to transfer data to this opened, second frame, for example, a string value.

Not sure to understand.

The following code is wrong ?

var

 frm:Taform;

begin
  frm:= Taform.Create(uniguiapplication.UniApplication);
  frm.anEditControl.text := sometextvalue;
  frm.showmodal(procedure(sender:Tcomponent;res:integer)
              begin
                if res=mrOk then
                begin

....
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...