Page 1 of 1

Continue and Editor/Help

Posted: Mon Oct 06, 2003 5:19 pm
by GPI
Something like this would be nice:

Code: Select all

procedure Test(a)
Select a
  case 1
    Debug "1"
    continue
  case 2
    Debug "2"
  case 3:continue
  case 4:continue
  case 5
    Debug "3"
endselect
endprocedure
and additional: the editor don't find the right topic for
procedureCDLL

Also nothing about ProcedureCDLL in the help (i know, what this command does)

same for
DeclareDLL
DeclareCDLL

GPI

[edit]
change code a little bit

test(1) ; Debug "1":Debug "2"
test(2) ; Debug "2"
test(3) ; Debug "3"
test(4) ; Debug "3"
test(5) ; Debug "3"


GPI

Posted: Mon Oct 06, 2003 7:08 pm
by blueznl
i don't get it, what would continue do?

Posted: Mon Oct 06, 2003 7:18 pm
by GPI
blueznl wrote:i don't get it, what would continue do?
I change my first posting. Do you now know, what i mean?

Posted: Mon Oct 06, 2003 8:46 pm
by blueznl
yeah, i see... i'm not sure i would ever use it though... it tends to take away a little from the readability of the code, and while i have a strong preference for select...endselect i would go for if...else...endif in the specific situation you describe

you mean 'continue' as in 'make_the_next_case_condition_true' but that's a bit long for a keyword :-)

Posted: Fri Oct 10, 2003 1:37 pm
by Andre
@GPI: Continue is included in the help file at topic 'Break & Continue'. The description tells you, that its thought for Repeat, For, ForEach and While. Is the using in a Select block a hidden feature ?

All other is up to Fred to answer :D

Posted: Fri Oct 10, 2003 3:59 pm
by GPI
Andre wrote:@GPI: Continue is included in the help file at topic 'Break & Continue'. The description tells you, that its thought for Repeat, For, ForEach and While. Is the using in a Select block a hidden feature ?

All other is up to Fred to answer :D
A big misunderstanding...

i know, that continue only work on loops. I want a extension, so that it also work on select -case (like in c, as i know.)

Posted: Fri Oct 10, 2003 11:41 pm
by freedimension
GPI wrote:i know, that continue only work on loops. I want a extension, so that it also work on select -case (like in c, as i know.)
Nope, it's just the other way round. In C you have to tell the program to leave the Select Case by inserting a break. Your method would be more like forwarding.

Posted: Fri Oct 10, 2003 11:43 pm
by Andre
Upps, didn't notice that we here are in "Feature Requests and Wishlists" :wink: