| To: | REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Files I don't want to see! |
| From: | Charles Yeomans <yeomans at desuetude dot com> |
| Date: | Sun, 30 Dec 2001 15:29:37 -0500 |
On Sunday, December 30, 2001, at 02:54 PM, Theo wrote: In this case, best is While WindowCount > 0 Window(0).Close Wend It handles extreme cases correctlyNo it doesn't. Yes it does. WindowCount = 0 precisely when there are no windows open. So the While loop executes if and only if there are windows open. and it's immediately obvious that it's correct.It is wrong, because a window might not close. I'm eager to see your counterexample in code. Charles Yeomans |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: ResEdit files..., Mr. Weasel Willits |
|---|---|
| Next by Date: | Re: Custom Listbox, Mr. Weasel Willits |
| Previous by Thread: | Re: Files I don't want to see!, Theo |
| Next by Thread: | Re: Files I don't want to see!, Kevin Ballard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |