Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread DO [BEGIN]
Sat, Mar 29 2008 10:48 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

Unless it would a) break something important, b) be bloody difficult or c) you hate the idea could we have an optional begin to match in with the Delphi syntax?

Roy Lambert
Mon, Mar 31 2008 4:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Unless it would a) break something important, b) be bloody difficult or
c) you hate the idea could we have an optional begin to match in with the
Delphi syntax? >>

Could you give me an example of what you're referring to ?  The BEGIN..END
blocks are pretty much optional right now anyways.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Apr 1 2008 3:43 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


[Label:]
WHILE <BooleanExpression> DO [BEGIN] <<<<<<<<<<<<
  <StatementBlock>
END WHILE [Label];

Almost every while statement I write is multi line and has a do begin so its a habit to type it. I find myself typing it in EDBManager and having to take it back out when it barfs.


Roy Lambert



Tue, Apr 1 2008 3:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Almost every while statement I write is multi line and has a do begin so
its a habit to type it. I find myself typing it in EDBManager and having to
take it back out when it barfs. >>

Yes, but it's important to note that the issue is not the inclusion of the
BEGIN, but the missing END. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Apr 1 2008 6:43 PMPermanent Link

Lance Rasmussen

Jazzie Software

Avatar

Team Elevate Team Elevate

Lol...

I hate that when it happens...

Let's just switch to braces please....    Wink


"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:A7C2A684-1CFD-47B1-90F2-B4E1F8A3D0FF@news.elevatesoft.com...
> Roy,
>
> << Almost every while statement I write is multi line and has a do begin
> so its a habit to type it. I find myself typing it in EDBManager and
> having to take it back out when it barfs. >>
>
> Yes, but it's important to note that the issue is not the inclusion of the
> BEGIN, but the missing END. Smiley
>
> --
> Tim Young
> Elevate Software
> www.elevatesoft.com
>
Wed, Apr 2 2008 2:16 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


In that case the new syntax will be

WHILE <BooleanExpression> DO BEGIN
  <StatementBlock>
END no I really mean it this is the END WHILE ;


Roy Lambert
Wed, Apr 2 2008 5:14 AMPermanent Link

"David Cornelius"
Roy Lambert wrote:
> WHILE <BooleanExpression> DO [BEGIN] <<<<<<<<<<<<
>    <StatementBlock>
> END WHILE [Label];

I caught me this evening as well.  I wrote a WHILE loop and because of
Pascal habits, I had to take off the BEGIN and add a WHILE at the END.
Then I read this message and laughed!

Tim, Oh well--better stick to close the SQL standard (I guess that's
why you did it this way.)


--
David Cornelius
CorneliusConcepts.com
custom designed software
Wed, Apr 2 2008 2:06 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

David,

< Tim, Oh well--better stick to close the SQL standard (I guess that's why
you did it this way.) >>

Yep, it's the SQL/PSM standard.  If you think this is bad, you should see
how they do the exception handling. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Image