Jump to content

thread in unigui


Rodrigo Baltazar

Recommended Posts

I created a thread, but when I use the Synchronize command to synchronize with the main mainform, it returns an access violation error.

Synchronize( procedure begin
     mainform.labSales.Caption:= FormatFloat('0,.00', StrToFloat(Qry.FieldByName('VALORPAGOS').AsString));
     end);

What am I doing wrong?

Grateful

Link to comment
Share on other sites

1 hour ago, Rodrigo Baltazar said:

It's updating a dashboard. I would like to read the queries in the thread and only update at the end when everything has been done.

You can also see demos:

\FMSoft\Framework\uniGUI\Demos\Desktop\ThreadTimer...

 

Link to comment
Share on other sites

19 hours ago, Rodrigo Baltazar said:

I created a thread, but when I use the Synchronize command to synchronize with the main mainform, it returns an access violation error.

Synchronize( procedure begin
     mainform.labSales.Caption:= FormatFloat('0,.00', StrToFloat(Qry.FieldByName('VALORPAGOS').AsString));
     end);

What am I doing wrong?

Grateful

Syncronize with main thread does not needed and does not help in the Unigui. I've send solution for such cases, you can try find it. The search key 'UniServerModule.GetSession'.

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