It does seem strange that your success has come with ==.. but you know, we didn't get into this line of work because it was easy... I've ended up using (successfully) a combination of the EvtSetNullEventTick function and a flag.. basically, when I detect a nilEvent, I check to see if an amount of time has passed.. if it has, I do whatever I was waiting for.. using EvtSetNullEventTick should assure me that I will get one after my "timer" expires... ---------- Bradly J. Barton - [EMAIL PROTECTED] Jenies Technologies Incorporated (972) 602-1835 http://www.JTI.net http://HandAble.com ----- Original Message ----- From: "HowY" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2001 12:28 PM Subject: Re: nilEvent (was: How to go to another form after specified Seconds of time) > Just trying to splash? > > I've been flamed over this one in the while loop > not using >= but it only seems to work as an equal... > > > // display splash screen > if (!FormNumber){ // if current form # is 0 > FrmInitForm(SplashForm); > frmP = FrmGetFormPtr(SplashForm); > FrmDrawForm(frmP); > TimeTks = TimGetTicks() + 110; // <- here's the delay > while (!X){ > if (TimeTks == TimGetTicks()) > X=1; > } // Use the system time for a delay, for & while loops don't work > FrmEraseForm(frmP); // erase active form > } > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
