artem_niko Posted April 29, 2022 Share Posted April 29, 2022 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 29, 2022 Share Posted April 29, 2022 Hello, Maybe you need look at this example? \FMSoft\Framework\uniGUI\Demos\Desktop\FormInheritance Quote Link to comment Share on other sites More sharing options...
artem_niko Posted April 29, 2022 Author Share Posted April 29, 2022 5 minutes ago, Sherzod said: Hello, Maybe you need look at this example? \FMSoft\Framework\uniGUI\Demos\Desktop\FormInheritance I was see this, but I'm understand, how this work... Quote Link to comment Share on other sites More sharing options...
artem_niko Posted April 29, 2022 Author Share Posted April 29, 2022 Just now, artem_niko said: I was see this, but I'm not understand, how this work... Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted April 29, 2022 Share Posted April 29, 2022 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 .... Quote Link to comment Share on other sites More sharing options...
artem_niko Posted April 29, 2022 Author Share Posted April 29, 2022 1 minute ago, Roberto Nicchi said: Taform; What is? Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted April 29, 2022 Share Posted April 29, 2022 Just now, artem_niko said: What is? The class of the form that is going to be opened with showmodal... Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted April 30, 2022 Share Posted April 30, 2022 19 hours ago, artem_niko said: for example, a string value. Hello, http://forums.unigui.com/index.php?/topic/11974-global-variable/&do=findComment&comment=63879 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.