fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Repeat Until ?

Repeat Until ? 2 years 2 months ago #1

  • Phil Hepburn
  • Phil Hepburn's Avatar Topic Author
  • Offline
  • Posts: 737
  • Karma: 7
Hi Robert and Team,

Does the current X# have Repeat Until ?

I may well be mistaken but I thought I just tried it and did not get a positive response.

I mean a proper one in the language 'body' not the nice fudge that Johan used to provide us with ;-0)

TIA,
Phil.

Please Log in or Create an account to join the conversation.

Repeat Until ? 2 years 2 months ago #2

Hi Phil,

Yes, REPEAT..UNTIL is supported. Of course the REPEAT and UNTIL keywords must be in separate lines, same as with DO..END etc. Did you get an error message when you tried it?

Chris
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

Repeat Until ? 2 years 2 months ago #3

  • Phil Hepburn
  • Phil Hepburn's Avatar Topic Author
  • Offline
  • Posts: 737
  • Karma: 7
Hi Chris,

I will try it again in the knowledge that I ought to be able to get it to work ;-0)

I saw no error as such but the words did not go blue as those for For/Next and do while did.

I will test my VS 2015 app and report back to you.

Many thanks for your time,
Phil.

Oh! and Happy New Year - if the Greeks have started the NY, or is it early Easter ;-0)

Please Log in or Create an account to join the conversation.

Repeat Until ? 2 years 2 months ago #4

  • Phil Hepburn
  • Phil Hepburn's Avatar Topic Author
  • Offline
  • Posts: 737
  • Karma: 7
Thanks Chris,

The code is now working in VS.

When I changed my code just there now, I put the REPEAT and UNTIL in the correct place but they stayed black in colour until I started typing the condition (after the until) - they then went blue.

Now all is working well and functioning OK.



Speak soon,
Phil.
Attachments:

Please Log in or Create an account to join the conversation.

Repeat Until ? 2 years 2 months ago #5

Phil,

REPEAT UNTIL has been added in Vulcan.
We have made these 'Positional' keywords, which means that they will only be recognized as keywords when the parser finds a valid language construct, which means that an expression must follow UNTIL.

I will see if I can make REPEAT - UNTIL appear as keywords without Expression as well.

Robert
XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

Repeat Until ? 2 years 2 months ago #6

  • Phil Hepburn
  • Phil Hepburn's Avatar Topic Author
  • Offline
  • Posts: 737
  • Karma: 7
Robert (and Chris),

Well, its not really a 'must have' - BUT - I have just checked in VS and it would be nice if all three loop structure keywords behaved in the same way.

'For' ... and 'do while' ... go blue almost straight away, as do 'Next' and 'end do' so it would seem right to me that 'Repeat' and 'Until' do the same.

Good Luck, and thumbs held,
Phil.

Please Log in or Create an account to join the conversation.

Repeat Until ? 2 years 2 months ago #7

Hi Phil,

Ah, yes, didn't think about the VS syntax highlighting..have been caught by that over and over through the years and I never learn :)

And yes, it's only Easter that's in a different date (most of the times) down here. Apart from that, we're on the same page!

Chris
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Page:
  • 1