Page 1 of 1

synchronize(0)

Posted: Thu Sep 20, 2012 9:13 am
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?