Mauri Posted January 30, 2017 Posted January 30, 2017 Hello, after I updated to version 1.0 RC (actually using 1365) I noted a difference when using appication forms. I know that application forms are created on demand without having to create it in code, but now, when I simply use something from the form like: Form1.someVariable := 'test' the form will automatically show without having to use Show or Showmodal, was this change intentional? If it was, is there a way to disable it? Because I have some forms that on Show I set some variables in other forms that will be used later, so that's causing me problems because when I open a form it will open the other ones. Thank you Quote
Administrators Farshad Mohajeri Posted January 30, 2017 Administrators Posted January 30, 2017 This behavior was same from the beginning. A form mıst be shown after it is create. Referring to UniForm1 instances automatically creates it which means that it should be shown. Quote
Administrators Farshad Mohajeri Posted January 30, 2017 Administrators Posted January 30, 2017 Form1.someVariable := 'test' Form1.Show(); Above is the correct syntax. Quote
Vieira Posted April 2, 2017 Posted April 2, 2017 My issue : private form : TUniForm; onClick button: form := FrmClient; //Form is showed but I need to use this value inside a PromptCallback prompt........... on PromptCallback : if AResult = mrOK then begin if AText = uniMainModule.qrySenhaSistemaTRABALHO.AsString then begin form.showmodal(); // form shoewd here if is true end Help Quote
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.