Re: How do I wait until myVar == true

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Jeez people, I gave the guy a warning about using DoEvents()... It's
nothing more than a quickie, a properly-written application should be
multithreaded/etc... And absolutely polling is a thing of the past.
Sometimes, though, it's not worth the effort. If what you want to do is
simple and the user won't care about some unresponsiveness, then I stand by
my statement, spend 45 seconds writing a polling loop statement rather than
whatever long it takes to do a multi-threaded "proper" app.

I was just giving the guy some choices.

Christoph - I specifically warned against that...
Willy - I never said to use DoEvents() in an alternate thread.
Jon - Your point is well-taken and I agree that proper design is always
better, but sometimes you are in search of a quick solution, for example if
you are quickly writing a data import routine that no end user will ever
see. User inreface responsiveness and saving every clock cycle possible is
not a huge priority. Delivery time might be the big priority (and usually
is).


.



Relevant Pages

  • Re: How long did you put up with...
    ... the proper order, I'l get one story after the other. ... Is the writing order somewhat sensible? ... I guess "purer" examples of an incarnation of the Champion than ... extremely angsty albino sorcerous Emperor of a dying race sworn ...
    (rec.arts.sf.written)
  • Re: Denormalizing for form only
    ... familiar to Excel users, as you already know, it isn't necessary ... So your position is to force the client to adapt to how Access ... Proper table design makes it way easier to ... reading, and writing. ...
    (microsoft.public.access.forms)
  • Re: Subdirectory aint directory
    ... Mandor wrote: ... I am writing a function that takes a given path and displays subdirectories and files with proper description: ...
    (comp.lang.php)
  • Re: D7 Compiler Bug
    ... magnitude could possibly resemble that of proper use of character case ... could have myself trained this way if writing non-OO code. ... While I do write non-OO code all the time, ... decision on creating a class model may involve quite some work. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Bringing things to a close - suggestions?
    ... and I'm also practising by writing a book - it's a first novel ... Before I started writing I'd ... Plus I have no idea of what sort of ending the characters are leading ... a coherent story with proper ending and all. ...
    (rec.arts.sf.composition)