• Welcome to Valhalla Legends Archive.
 

Do Events?

Started by ObsidianWolf, January 31, 2004, 06:30 PM

Previous topic - Next topic

ObsidianWolf

I know about using DoEvents in my code and such... But I was wondering what It actually does?

dxoigmn

#1

ObsidianWolf

Was hoping for an answer that wasnt by the book, Thanks for help anyways.

dxoigmn

Quote from: ObsidianWolf on January 31, 2004, 07:13 PM
Was hoping for an answer that wasnt by the book, Thanks for help anyways.

Well, I don't think it can get more clear that that.  It returns the current number of forms loaded and passes control over to the CPU.

Fr0z3N

How blante can I say this?

Yields execution so that the operating system can process other events.

Newby

You know, I think he could have clicked the link Fr0z3N. You didn't have to copy/paste the first line of text from that article.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

Adron

I looked at the disassembly of it some time, and among other things it seemed to have a PeekMessage/DispatchMessage loop to take care of any pending window messages.

Fr0z3N

Quote from: Newby on February 01, 2004, 12:45 AM
You know, I think he could have clicked the link Fr0z3N. You didn't have to copy/paste the first line of text from that article.

"Was hoping for an answer that wasnt by the book, Thanks for help anyways. "

I took that as he didn't get what he wanted by clicking the link.

Newby

- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

TheMinistered

#9
You know, if people actually studied visual basic and KNEW what an event was... that keyword would probably make a hell of a lot more sense to them.  But who am I to argue this? ;)

[MORE!]
Do -- I think we all, by now, should know what this verb means
Events -- These are sub procedures called when something happens/etc!

Do (some) events!  Get it?

I think that this is the kindergarten technique of explaining the 'DoEvents' keyword!

[EVEN MORE!]

The following block of code will execute endlessly!  If it executes endlessly that means that we are in trouble because specific occurances (events) will not be handled, because the program is hung in this loop.  However, if inside the loop you put the 'DoEvents' keyword; the program will 'Do (Some) Events' or handle events while this loop is processing endlessly, which can be a good thing!  


Do
   V=V+1
Loop