Re: Thread Question



D wrote:
My question is, how would I go
about creating the thread? I have seen examples that used classes, and
other examples that just called one thread start command - when should
you use one over another?

For simple use it doesn't matter. Use a class when you want to add more state or behaviour - for example you might want a flag that tells the thread to stop, or a Queue to communicate with the thread. A class might be more convenient in these cases.

IOW if you can write it as a single function it doesn't matter much which form you use; for more complex usage you may want a class.

Kent
.



Relevant Pages

  • RE: combo box...then multi select list box
    ... it does not matter where the code is within the module. ... "Kevin" wrote: ... >> Private Function BuildWhereCondition(strControl As String) As String ... >>> the selections in each box, then click a command button for various available ...
    (microsoft.public.access.forms)
  • Re: Simplify the Linux commands
    ... > have the same format for sending output to the screen, ... Now you suggest that people use a different command just ... If less total code is always better, no matter what, then we wouldn't ... The problem with the world is stupidity. ...
    (comp.os.linux)
  • Invalid Boot ini File
    ... >Having done a Google search on the matter I found the ... >Press any key to boot from CD ... message....The command is ... Type help for a list of supported ...
    (microsoft.public.windowsxp.basics)
  • URL error message
    ... It didn't matter where the damn URL was, ... didn't matter, the action would not call a browser, just returned the ... written so that when a URL was clicked on it would issue a command like ... Yes I'd forgotten Reporter, however, it doesn't add much to the plot. ...
    (comp.sys.acorn.apps)
  • RE: combo box...then multi select list box
    ... Does it matter that the code for the command buttons ... > Private Function BuildWhereCondition(strControl As String) As String ... >> I set up this code in the OnClick Event. ...
    (microsoft.public.access.forms)