synchronize(0)

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

synchronize(0)

#1 Post by skiman »

Hi,

It seems as the synchronize(0) isn't working in the action of a pushbutton. This makes no sense, this is the action of my pushbutton.

Code: Select all

@ 230,0 DCPUSHBUTTONXP notabstop ;
      SIZE 76, 35 ;
      CAPTION 'F6' ;
      BITMAP ABO_PRINT1N ;
         ALIGN 4 ;
         OFFSET 3 ;
         SCALE 1 CONFIG oConfig ;
            PARENT oStatRight ;
            ACCELKEY xbeK_F6 ;
            TOOLTIP fTooltip(1035) ;
            ACTION {|o| sf_initrecord(aApp,getlist),lf_initrecord(aApp,getlist),;
                       o:=Thread():new(),o:start({||Afdruk(nVolgnr,nVolgnr,,cSoort,cDagboek)}),;
					   o:synchronize(0),;
  (wtf "hello") ,;
					   lf_initrecord(aApp,getlist) ,;
                       dc_getrefresh(getlist),dc_setappfocus(DC_GetObject(getlist,'oNaam')) };
            PIXEL HIDE { || lListfact } group "BUTTON"
The wtf is executed before the end of the 'afdruk' function. What am I missing?
Best regards,

Chris.
www.aboservice.be

Post Reply