Re: Some questions about the languages

new topic     » goto parent     » topic index » view thread      » older message » newer message
Derek Parnell said...

I don't understand the label part or how to use it. Nothing in the docs explains it. The example doesn't use it.

switch foo label "SW1" do 
   case "A" : 
       switch bar do: 
          case 1: 
              dosomething 
              -- The 'break' here let's me get out of the enclosing switch. 
              if x then break "SW1" end if 
              break 
          case 2: 
              . . . 
       end switch 
   case "B": 
         . . . 
end switch 

[/quote]

Thanks derek

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu