Xojo Conferences
MBSOct2019CologneDE

Auto-insert "X" in "Next X" (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: HandleAppleEvents
Next thread: Option-dragging properties does not preserve "Private" setting


RE: Timezone Difference Question   -   Michael Raycraft
  Auto-insert "X" in "Next X"   -   eric oxalyn.com
   Re: Auto-insert "X" in "Next X"   -   Seth Willits
    Re: Auto-insert "X" in "Next X"   -   Dennis Birch
   Re: Auto-insert "X" in "Next X"   -   Will Leshner

Auto-insert "X" in "Next X"
Date: 28.08.02 18:01 (Wed, 28 Aug 2002 12:01:29 -0500)
From: eric oxalyn.com

Summary: Auto-insert "X" in "Next X"
Product: REALbasic
ProductVersion: 4.5
Component: Application
Severity: Feature Request
CC: <email address removed>
Reproduce:
Reproducible: Always
OSVersion: 10.1.5.
CPUType: PowerPC
SubmittedOn:
REALbugsVersion: 1.3.1
Description: Currently, if I do this:

for counterto 10
..
next counter

..the compiler throws a fit on the Next line, and I have to remove the "counter" for it to work.

Our code would be much more readable with the ability to leave this in, or, better, to have it automatically inserted.
WorkaroundNotes:
Workaround: 0

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Auto-insert "X" in "Next X"
Date: 28.08.02 18:15 (Wed, 28 Aug 2002 10:15:39 -0700)
From: Seth Willits
On 8/28/02 10:01 AM, the NSA intercepted the following message from
"<email address removed>" <<email address removed>>:

> Description: Currently, if I do this:
>
> for counter=1 to 10
> ..
> next counter
>
> ..the compiler throws a fit on the Next line, and I have to remove the
> "counter" for it to work.
>
> Our code would be much more readable with the ability to leave this in, or,
> better, to have it automatically inserted.

I guess I can agree it would be more readable, but I believe it's readable
enough as it is. Also, if someone new to the syntax were to look at code
like above, it could lead them to believe they could do something like:

For Banannas = 1 to 10
...
Next Monkey

my 2¢


Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

A one-question geek test. If you get the joke, you're a geek:
Seen on a California license plate on a VW Beetle: "FEATURE"
-- Definitely A Geek
---------------------------------------------------------------------------



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Auto-insert "X" in "Next X"
Date: 28.08.02 18:18 (Wed, 28 Aug 2002 10:18:26 -0700)
From: Dennis Birch
It's pretty easy to work around this limitation:

for counterto 10
..
next //counter (or 'counter)

At 12:01 PM -0500 8/28/02, <email address removed> wrote:
>Summary: Auto-insert "X" in "Next X"
>Product: REALbasic
>ProductVersion: 4.5
>Component: Application
>Severity: Feature Request
>CC: <email address removed>
>Reproduce:
>Reproducible: Always
>OSVersion: 10.1.5.
>CPUType: PowerPC
>SubmittedOn:
>REALbugsVersion: 1.3.1
>Description: Currently, if I do this:
>
>for counterto 10
>..
>next counter
>
>..the compiler throws a fit on the Next line, and I have to remove
>the "counter" for it to work.
>
>Our code would be much more readable with the ability to leave this
>in, or, better, to have it automatically inserted.
>WorkaroundNotes:
>Workaround: 0

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Auto-insert "X" in "Next X"
Date: 28.08.02 18:58 (Wed, 28 Aug 2002 10:58:50 -0700)
From: Will Leshner
There is a workaround. Write it like this:

for counter = 1 to 10
..
next // counter

On Wednesday, August 28, 2002, at 10:01 AM, <email address removed> wrote:

> for counterto 10
> ..
> next counter
>
> ..the compiler throws a fit on the Next line, and I have to remove
> the "counter" for it to work.
>
> Our code would be much more readable with the ability to leave this
> in, or, better, to have it automatically inserted.
> WorkaroundNotes:
> Workaround: 0

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>