Jump to content

Application Form


Mauri

Recommended Posts

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

Link to comment
Share on other sites

  • 2 months later...

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

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...