Breaking the loop...

hi and good day all.
how do i break the second loop and go to the first loop without doing the process in the first loop?
for(a)
if(b) {
for(c) {}
processA;
i want it to be this way:
if it stop during loop for(c), how do i make it go to for(a)without doing processA?
any ideas?
pls help

hi...
this is what i did:
               loop1:
               for (int l = 0 ; l < msgs.length;l++) {
               statusHeader= msgs[l].getHeader("Status");
                         if(! (statusHeader[0].equals("RO"))) {
                              String status="";
                              Vector temp1 = new Vector();
                              if(!temp.isEmpty()) {
                              loop2:{     
                                   for( int m = 0 ; m <temp.size(); m++) {
                                        if (uid.getUID(msgs[l]).equals(temp.elementAt(m))){
                                             continue loop1;
but i get error:
Interface.java:1463: not a loop label: loop1
                                             continue loop1;
what s wrong?

Similar Messages

  • Not Breaking the loop but how to continue with the next iteration in a For

    Hi all
    i have the following piece of code
    Please let me know, what is the /*some construct*/ which will not break the loop but goes to the next iteration skipping Login b
    Loop
    Login A
    /*some construct*/
    Login B
    End loop;
    P.S
    I should do this without Label or Exception ... I am using oracle 8i
    Thanks
    Hariharan
    T

    An [url http://www.oracle.com/pls/tahiti/tahiti.tabbed?section=48911]IF statement?
    loop
      login_a;
      if false
      then
        login_b;
      end if;
    end loop;Regards,
    Rob.

  • How do I break the loop of restoring photo albums on my iPhone 4S?

    Hello one and all,
    First of all thank you for reading this, I really hope someone out there can point me in the right direction. I have synced my iPhone in iTunes and all has gone well. HOWEVER when I go to Photos on the phone it shows the camera roll and I get a message saying "Restoring". The phone then begins to build albums I do not have set to synchronise.
    Background:
    I did have multiple albums set to synchronise in iTunes but I have since switched off the synchronising for photos in iTunes. I got the warning about deleting those photos from my phone and elected to go ahead and delete those photos from the phone. All went without a hitch and iTunes showed the phone as having 51 photos. This tallies with the contents of the camera roll. Perfect.
    When I eject my iPhone and enter the Photos option I see my camera roll only. Lovely. After a couple of seconds however I get the message "Restoring" and albums start reappearing. I have tried restarting iTunes and performing a restart of the phone (not just off and on again). I have disconnected the USB cable between the two while restarting. Still I cannot get rid of this fascist restoring process. In the end as a precaution I switched on photo syncing in iTunes and set it to selected folders only. I selected a folder I had just created. A folder with nothing in it. It shows this folder has 0 photos in iTunes. STILL my iPhone is restoring photo albums. I do not want >7000 photos. I want only the 51 you promised.
    I don't have photo stream switched on, the phone is set to back up by USB to my MBP only and the iTunes sync shows no problems. My MBP is running the latest iTunes and OSX and my iPhone is on the latest version of iOS. I have searched on the forums and used Google: close threads but nothing addressing this issue. Please, please, please help. I know it is going to be something stupidly simple but can anyone provide a solution?
    Yours in desperation,
    Andy

    http://support.apple.com/kb/HT4847

  • Break out of a while loop from outside the loop

    Hello,
    I have an application where I have some nested while loops. Is it possible to break the innermost loop from a control that is outside of the inner loop? My inner loop is running a scan and read operation on the serial port and is reading data as it somes in. I need this loop to break when the user presses a button located in one of the outer loops so that another section of the vi can execute. Thanks in advance.
    Greg
    Gregory Osenbach, CLA
    Fluke

    Greg,
    You should place the terminal of the button in the innermost loop and wire out from there to the other locations the value is needed. If these are nested loops, the controls will not get read until the outer loop iterates again and this can only happen if the inner loop has ended anyway. Thus your scheme will not work.
    Alternatively, you can place the control in a loop that executes in parallel,then use local variables of it in the other locations, but the above solution is better.
    LabVIEW Champion . Do more with less code and in less time .

  • Hi, how can i break the value for a row and column once i have converted the image to the array?????​??

    Hi, I would like to know how can i break the value for a row and column once i have converted the image to the array. I wanted to make some modification on the element of the array at a certain position. how can i do that?
    At the moment (as per attachhment), the value of the new row and column will be inserted by the user. But now, I want to do some coding that will automatically insert the new value of the row and the column ( I will use the formula node for the programming). But the question now, I don't know how to split the row and the column. Is it the value of i in the 'for loop'? I've  tried to link the 'i' to the input of the 'replace subset array icon' , but i'm unable to do it as i got some error.
    Please help me!
    For your information, I'm using LABView 7.0.

    Hi,
    Thanks for your reply.Sorry for the confusion.
    I manage to change the array element by changing the row and column value. But, what i want is to allow the program to change the array element at a specified row and column value, where the new value is generated automatically by the program.
    Atatched is the diagram. I've detailed out the program . you may refer to the comments in the formula node. There are 2 arrays going into the loop. If a >3, then the program will switch to b, where if b =0, then the program will check on the value of the next element which is in the same row with b but in the next column. But if b =45, another set of checking will be done at a dufferent value of row and column.
    I hope that I have made the problem clear. Sorry if it is still confusing.
    Hope you can help me. Thank you!!!!
    Attachments:
    arrayrowncolumn2.JPG ‏64 KB

  • Break the SELECT statement.

    Hi,
    My requirement is to break the Select statement and get the fields in where clause in one internal table.
    For eg: Select VBELN
                          POSNR
                          MATNR  from VBAP into wa_vbap where VBELN = '0000000001'
                                                                              and   POSNR = '000010'.
    Here i need to put fields VBELN, POSNR, MATNR in one internal table, table name VBAP in second internal table  and where clause fields  VBELN, POSNR in third internal table.
    Please let me know if anyone has any solution for this.
    Thanks in advance.
    Sunanda.

    Hi
    *& Report  YSELECT                                                     *
    REPORT  YSELECT                                 .
    *Select VBELN
    *POSNR
    *MATNR from VBAP into wa_vbap where VBELN = '0000000001'
    *and POSNR = '000010'.
    *Here i need to put fields VBELN, POSNR, MATNR in one internal table,
    *table name VBAP in second internal table and where clause fields VBELN,
    * POSNR in third internal table.
    TABLES: VBAP.
    TYPES: BEGIN OF STRUCT1,
          VBELN LIKE VBAP-VBELN,
          POSNR LIKE VBAP-POSNR,
          MATNR LIKE VBAP-MATNR,
           END OF STRUCT1.
    TYPES: BEGIN OF STRUCT2,
            TBLNAME(10),
           END OF STRUCT2.
    TYPES: BEGIN OF STRUCT3,
          VBELN LIKE VBAP-VBELN,
          POSNR LIKE VBAP-POSNR,
          END OF STRUCT3.
    DATA: ITAB1 TYPE TABLE OF STRUCT1 WITH HEADER LINE,
          ITAB2 TYPE TABLE OF STRUCT2 WITH HEADER LINE,
          ITAB3 TYPE TABLE OF STRUCT3 WITH HEADER LINE,
          V_TBLNAME(10).
    ITAB3-VBELN = '0000000001'.
    ITAB3-POSNR = '000010'.
    APPEND ITAB3.
    LOOP AT ITAB3.
        SELECT VBELN POSNR MATNR FROM VBAP INTO TABLE ITAB1 WHERE VBELN EQ
    ITAB3-VBELN AND POSNR EQ ITAB3-POSNR.
          WRITE ITAB1-VBELN.
    ENDLOOP.
    WRITE: 'SUBRC=', SY-SUBRC.
    I am unable to find out how to satisfy your second internal table requirement.
    Hope this helps
    Regards,
    Jayanthi.K

  • Calculating Mileage & Breaking For Loop

    Hey all,
    I'm trying to create an application that calculates total mileage traveled and subtracts the initial mileage reading on the odometer. Can someone please tell me what I'm doing wrong? Also, can you tell me how I can break the For loop by inputting a negative number or typing in "stop"? I pasted the code below. Thanks for your help!
    import java.util.Scanner;
    public class Lab4{
         public static void main(String args[]){
              int miles[] = new int[10];
              double gallons[] = new double [10];
              double mpg[] = new double [10];
              Scanner kb = new Scanner(System.in);
              int count=0;
              double counter=0.0;
              for (int i = 0; i < 1; i++){
                   System.out.println("What is the reading on the odometer?");
                   miles[i] = kb.nextInt();
                   if (i > 0)
                        count = count + miles;
              for (int i = 1; i < 9; i++){
                   System.out.println("How many miles have you traveled since last filling up?");
                   miles[i] = kb.nextInt();
                   if (i > 0);
                        count = count + miles [i] - miles[0];
              System.out.print("You have traveled " + count);
              System.out.println(" miles");

    915786 wrote:
    I'm trying to create an application [...]
    public class Lab4{// which seams to be a School lesson...
    int miles[] = new int[10];
    //Do you know what this line does?
    miles[i] = kb.nextInt();
    //Any idea why this line does not compile?
    count = count + miles;
    // and this line either?
    I think you should go back two steps and learn the differences between objects, primitive types and arrays.
    bye
    TPD

  • How do I copy just the main region of a looped region & not the loops?

    How do I copy just the main region of a looped region & not the looped bits?
    Sometimes on the last iteration of a loop, I want to make a slight change in the notes, and therefore need to insert and actual copy. When I copy the original region and paste it, it overwrites everything that follows...deleting a whole bunch of arranging that I just did. Is there a command to copy only the original region? Otherwise I have to unloop the region, copy, insert, and reloop the region. Thanks

    Either you have a lot of Pages breaks which you can delete or you have aded a Pages break which you also can delete. Turn on the invisible characters View > Show Invisibles. You will see blue characters.

  • Last value from a loop and values inside the loop

    Hi
    Sorry about the confusing heading above, but its late at night and better words do not occur to me rightaway. Let me explain my situation.
    I have a single instrument (a voltage source) that is being swept from one value to another for an experiment. It has three VI's : 1. enable o/p. 2. Set a voltage output level. 3. diable o/p.
    I am using the error in and error out pins of instrument vis to properly sequence operations. I connect the error out pin of VI 1 to the error in pin of VI 2. Each of these errors is a cluster of three values.
    When I try to wire the error out from VI 2 inside the loop to VI 3 outside the loop, the wiring breaks as I am then trying to connect an array (a 1 dimensional n member array of error outs) to a single error in pin. Trying to connect it to an array outside the loop is obviously the same. (I am making an assumption here - while the loop is running, I do not need to make certain of the sequencing of operations by putting a feedback node on VI 2 - that would mean something quite different in any case.).
    So, how do I pass the last value (in this case, the error out cluster from the last stage) to error in pin of VI 3 ?
    I have read that it might be possible using shift registers. I am quite new to LabVIEW. A somewhat detailed description of what I need to do would be nice.
    Thanks.

    Hello,
    There are basically two options:
    Handle the errors outside the for-loop
    Handle the errors inside the for-loop
    For you solution 1 is the easiest achievable, after the for loop use the 'Merge Errors' VI this will change the 1d-array into a cluster. The downside is that if an error occured later states of the loops don't know this
    Solution 2 uses the shift register you mentioned. To use this you have to right-click on the right hand-side tunnel of the error wire (where it leaves the for-loop) and select shift register, sequentially your mouse pointer changes into an downpointed arrow, click on the entry tunnel on the left of the for-loop. What happens is that an error in the for loop is remembered into the next iteration (use execution highlighting to watch these)
    Here is some code:
    A good start might be:
    The link to the LabVIEW Learning Center is here
    Ton
    Message Edited by TonP on 09-25-2006 08:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏5 KB

  • Go to the top of the loop

    Guys what is the command to go to the beginning of the loop.Example
    int var = 0;
    while(var <= 10){
    var = var + 1;
    if (var == 5){
    go back to while loop
    do something a
    do something b
    do something c
    do something d
    }

    break goes to the bottom of the loop (it ends the loop), continue goes to the top of the loop (interrupts the current iteration of the loop and goes to the next iteration).

  • Control the loop of resultset.next( ); (method)

    Hai, guys
    I am using the ODBC database connection to (Excel Sheet) and i wanna get the records from it. My code is scucess but there is a problem in resultset.next() method.
    The thing is it retrieving all the data including the none data fields (null null), so finally it became a never ending loop.
    pls help me to get the data rang's records
    Statement stmnt = connexl.createStatement();
    String query = "SELECT * FROM [IJTS$]";
    stmnt.execute(query);
    ResultSet rsxl = stmnt.getResultSet();
    while(rsxl.next()) {
    String excelname = rsxl.getString(1);
    String excelcate = rsxl.getString(2);
    System.out.print(rsxl.getString(1));
    System.out.println(" "+rsxl.getString(2));
    }

    if null implies it has reached the last row, maybe you could check for null and break from the loop
    for example:
    while (rsxl.next()) {
      String excelname = rsxl.getString(1);
      String excelcate = rsxl.getString(2);
      if (excelname == null && excelcate == null) {
        break;
      } else {
        System.out.println(excelname + " " + excelcate);
    }

  • Breaking a loop at any slide

    I am trying to create a looping presentation, but I want to break out of the loop at any time by hitting a key on the keyboard so I can go to another program.  I am using Captivate 5.5 and am attempting to publish to an .exe file to run on the desktop.
    Thank you.

    Welcome to our community
    You seem to be thinking that the Captivate exe somehow takes over your PC? Can't you simply prss Alt+Tab and switch focus to something else?
    If you press Esc, you exit the EXE.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • [svn:bz-trunk] 23156: preventing pass through as current solution is breaking the AMF message format

    Revision: 23156
    Revision: 23156
    Author:   [email protected]
    Date:     2011-10-28 12:28:39 -0700 (Fri, 28 Oct 2011)
    Log Message:
    preventing pass through as current solution is breaking the AMF message format
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/SerializedObject.java

    Ok problem solved...
    Basically I was calling one ResultSet after another. Thanks to the Database Broker's structure, this was killing the first ResultSet. I fixed up the loops so that ResultSets were only ever called just before they were needed, and it fixed the problem. The only other errors were simple logic faults which I drummed out in short order. Thanks for the help everyone!

  • Adobe Cloud membership - I am stuck in the loop of Licensing VERY Frustrating!!!

    I have an Adobe Cloud membership - I am stuck in the loop of Licensing as well VERY Frustrating - I have a project due and have been troubleshooting for days -
    Un Installing - Re installing - NIGHTMARE  - Please someone help me!!! Thanks in advance -

    What happens when you enter your Adobe ID tied to your subscription?

  • Problem previewing loops in the loop browser in Logic 8

    Loops are only audible when the sequencer is not playing.
    When the sequencer is playing, the selected loop shows it's playing in the loop browser window, but I cannot hear it.
    ANY ANSWERS?
    NOTE:
    All my outputs in logic (including the loop browse strip) are routed to SPDIF OUT as I have a DynAudio digital speaker system.
    Thanks in advance,
    Hennie

    I have found if you wait long enough, you will hear the file begin to play. Sometimes the delay can several seconds. Not acceptable IMO.

Maybe you are looking for

  • Front Row in the MacBook Pro

    Hey Is the version of Front Row shipped in Macbook Pro the same as the one in the new Intel MacMini? The Front row description in the apple site http://www.apple.com/macmini/frontrow.html talks about "Let Mac mini and Front Row entertain you by playi

  • Batch valuation whilst goods receipt to purchase order

    Hi Experts, I've assigned and valuated a batch class to a raw material. Batch management is activated for the material. When posting goods receipt to a purchase order the system creates a batch but without valuation. My expectation is that the system

  • How do I save files to time capsule separate from the back up files

    I have the time capsule set up; the wifi works great with all devices and it backed up my MacBook a few times without incident.  After that I exported portions of my iPhoto library to files I set up on the time capsule and since then I get an error m

  • How to get DVD's into Final Cut 5

    I have been given raw footage of my son's wedding shot in HD and put on 5 DVD's. It is in standard definition on the DVD. How can I get it into Final Cut 5 to edit? I have always worked from miniDV tapes and am at a loss as to how to make this work.

  • Interface Builder doesn't open

    I'm a long time developer, first-time developer for Mac. I've just started to use the Xcode tools. I've used them in the past, but I just got my new MacBook Pro and installed Xcode 3.2.1 (10m2003). I started following one of the application tutorials