Jump to content

How can I make the codes work in order of writing?


pro_imaj

Recommended Posts

1 hour ago, pro_imaj said:

Hi

When I run the code below, the code in line 2 works and closes the form, without SubmitData in line 1 working.

How do I get it to work sorted in Unigui?

   UniCanvas1.SubmitData;
   TuniForm(Owner).Close;

I fixed the problem by adding the form close function to the end of the UniCanvas1AfterSubmit event.

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