i do want to use Thread which are call a Function.
i use Thread to "fill" Imagelist of Object and all in Function use Object ... except FOR ii
Question : will ii be "manipulate" by 2nd Thread when called twice
Code: Select all | Expand
Function addSale( oCustomer, nNewSale )
oCustomer:TotalSales := oCustomer:TotalSales: + nNewSale
Return nilCode: Select all | Expand
oCustomer:AddSale( nSale )
? oCustomer:TotalSalesCode: Select all | Expand
FOR ii := 1 TO nMax
cFilename := TRIM( ::aSource[ ii ] [ F_NAME ] )Code: Select all | Expand
hb_threadStart(@::MyMethod)
hb_threadStart(@oSelf:MyMethod)
hb_threadStart(@&MyMethod)Code: Select all | Expand
bMethod := { || ::ImageThread() }
::hThread := hb_threadStart( HB_BITOR( HB_THREAD_INHERIT_PUBLIC, HB_THREAD_MEMVARS_COPY ), @bMethod )