clear the table of loop for

Hello world

I have a question about the erasure of history to the table. It sounds simple, but I'm really confused...

As the example attached below, I've built a table within a while loop and a loop. After totally run the program once, when I run it a second time, it seems that the table has a memory of the last time, that is the size of table does not start from 0, and appears the old number from last time, even through its initialization of the for loop.

How can I make it go empty each time when I restart the table?

Need your help. Thank you very much. : )

You must also have a shift in the loop FOR. This will keep the data for the duration of the program, but it clear at the beginning of the next run.

Tags: NI Software

Similar Questions

  • Delete the text of the table via loop field for

    Hello

    I have a problem to delete text added via loop fields for.

    What im do is, via loop GI dynamically create menu with 10 buttons.

    Each button contain, created dynamically, background (shape) and the text field.

    And all is well.

    But when im trying to delete text fields, then I got this error:

    -I'm using the button to remove text fields - lang_btn.addEventListener (MouseEvent.CLICK, clickHandler);

    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
              at flash.display::DisplayObjectContainer/removeChild()
              at Loading_Img_fla::MainTimeline/xmlLoaded()
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()
    
    

    In the script below marked in red is what should remove the fields of text in a table, instead me gives error.

    Here's my script

    // Create for loop
    for (var i:int = 0; i < 10; i++)
    {
              for each (xml in listItems)
              {
                        if (i == xml.attribute("Id"))
                        {
                                  // Add MovieClip to stage to hold the data
                                  addChild(lmHolder);
                                  lmHolder.x = 0;
                                  lmHolder.y = 0;
      
                                  // Create new MovieClip to hold buttons
                                  lmButtonsMCArray[i] = new MovieClip();
                                  lmButtonsMCArray[i].buttonMode = true;
                                  lmButtonsMCArray[i].mouseChildren = false;
                                  lmButtonsMCArray[i].x = 20;
                                  lmButtonsMCArray[i].y = 20 + btCount * buttonSpace;
    
    
                                  // Add each button MovieClip to lmHolder MovieClip
                                  lmHolder.addChild(lmButtonsMCArray[i]);
    
    
                                  // Create Background to buttons
                                  lmButtonsArray[i] = new Shape();
                                  lmButtonsArray[i].graphics.beginFill(lmBgColor0, 1);
                                  lmButtonsArray[i].graphics.drawRect(0, 0, 230, 85);
                                  lmButtonsArray[i].x = 0;
                                  lmButtonsArray[i].y = 0;
    
    
                                  // <<-- Add Background shape to the buttons MovieClips 
                                  lmButtonsMCArray[i].addChild(lmButtonsArray[i]);
    
    
                                  // Create a new array to preserve data from XML List
                                  lmNameArrayEG = new Array();
                                  lmNameArrayUS = new Array();
    
    
                                  // Create local variable to hold
                                  var lmTxtFieldContentUS:String;
                                  var lmTxtFieldContentEG:String;
                                  var lmTxtContent:String;
      
                                  // If clicked button is EG then make array with Arabic text
                                  // If clicked button is US then make array with English text
                                  if (footer.lang_btn.langState == "EG")
                                  {
                                            for each (var leftMenuName:XML in egLanguageList)
                                            {
                                                      lmNameArrayEG.push(leftMenuName);
                                            }
                                            lmTxtFieldContentEG = lmNameArrayEG[i];
                                            lmTxtContent = lmTxtFieldContentEG;
                                  }
                                  else
                                  {
                                            for each (var leftMenuNameUS:XML in usLanguageList)
                                            {
                                                      lmNameArrayUS.push(leftMenuNameUS);
                                            }
                                            lmTxtFieldContentUS = lmNameArrayUS[i];
                                            lmTxtContent = lmTxtFieldContentUS;
                                  }
                                  // Setup new text field each time script is executed
                                  lmTxtFieldsArray[i] = new TextField();
                                  lmTxtFieldsArray[i].width = 110;
                                  lmTxtFieldsArray[i].border = false;
                                  lmTxtFieldsArray[i].wordWrap = true;
                                  lmTxtFieldsArray[i].multiline = true;
                                  lmTxtFieldsArray[i].selectable = false;
                                  lmTxtFieldsArray[i].embedFonts = true;
                                  lmTxtFieldsArray[i].antiAliasType = AntiAliasType.ADVANCED;
                                  lmTxtFieldsArray[i].autoSize = TextFieldAutoSize.CENTER;
                                  lmTxtFieldsArray[i].text = lmTxtContent.toUpperCase();
                                  lmTxtFieldsArray[i].x = 10;
                                  lmTxtFieldsArray[i].name = "lmTxtFieldName" + i;
    
    
                                  // <<-- Add Text fields to the Movie Clip
                                  lmButtonsMCArray[i].addChild(lmTxtFieldsArray[i]);
    
    
                                  // If clicked button is EG then set Arabic text format, and make array with Arabic text fields
                                  // If clicked button is US then set English text format, and make array with Egnlish text fields
                                  if (footer.lang_btn.langState == "EG")
                                  {
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_eg);
                                            // Make array from text fields;
                                            pushEgTFintoArray.push(lmTxtFieldsArray[i]);
                                  }
                                  else
                                  {
                                            lmTxtFieldsArray[i].setTextFormat(txtFormat_lm_us);
                                            // Make array from text fields;
                                            pushUsTFintoArray.push(lmTxtFieldsArray[i]);
                                  }
      
                                  // If clicked button is EG then loop thrue the for loop and remove English text fields from array
                                  // If clicked button is EG then loop thrue the for loop and remove Arabic text fields from array
                                  if (footer.lang_btn.langState == "EG")
                                  {
                                            for (var rNr_us:Number = 0; rNr_us < pushUsTFintoArray.length; rNr_us++)
                                            {
                                                      //remove the text field array from the display
                                       removeChild(pushUsTFintoArray[rNr_us]);
                                            }
                                            //clear the array
                                            pushUsTFintoArray = [];
                                  }
                                  else
                                  {
                                            for (var rNr_eg:Number = 0; rNr_eg < pushEgTFintoArray.length; rNr_eg++)
                                            {
                                                      //remove the text field array from the display
                                       removeChild(pushEgTFintoArray[rNr_eg]);
                                            }
                                            //clear the array
                                            pushEgTFintoArray = [];
                                  }
                        }
              }
    
    
              btCount++;
    }
    
    

    If you don't know what you're doing, you can always use:

    {If (pushUsTFintoArray [rNr_us] & {pushUsTFintoArray [rNr_us] .stage)}

    pushUsTFintoArray [rNr_us].parent.removeChild (pushUsTFintoArray [rNr_us]);

    }

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • How can I display the table of contents for the iPod Touch to 6

    When I opened first of all iPod Touch Users' Guide, I used the table of contents (TOC) to locate and access sections in the manual. But, after looking through the manual for awhile, I tried to return to the table of contents, but it wasn't there! I have tried various things to see if the table of contents are being hidden, or if in some way, it has been deleted. Anyone can shed light on this mysterious event?

    What is the version of iBooks that you speak? There is an online version here: https://help.apple.com/ipod-touch/9/ Aha, I see the table of contents on the left disappears if you zoom before or make the narrow window and reappears if zoom you out or make it larger.

    TT2

  • Clear out in a loop for

    Hi guys,.

    I have a problem, so I activate timed values on the outputs analog of my RedLab card.

    The problem is that when I stop the program, the outputs are always activate.

    How can I solve this problem?

    Best regards from max

    What version of LabVIEW?

    I forgot which version he presented, but lately, you can add a CONDITIONAL TERMINAL to a loop FOR.

    Use it to stop the loop if the user clicks a button or if the voltage exceeds 3.14159 Volts, or whatever.

    You can also use a basic while loop, set the AUTOMATIC indexing entries and compare yourself 'i' to N - 1, in the loop.

    Stop BUTTON so STOP = TRUE or i = 3.14159 > N-1 or V...

  • Filling N-dimensional table without loop for

    Hello

    I would like to create a table to N dimensions without the use of loops, one in other than n times because I would like to have the number of variable dimensions, so I don't want to change the code by adding or removing loops whenever I change the number of dimensions. I would like to start Let's say with 7 dimensions 10x10x10x10x10x15x20.

    Thank you

    Zied


  • All-in-one printer 6500: how to clear the history of calls for a 6500 printer has?

    I am upgrading to a new HP printer and want to donate my 6500 a, but need to erase history calls first.  It has been a tool to clear the fax log, but how do I clear the call history?  I checked after clearing the fax log, and all the phone numbers are always listed in the call history.

    Perhaps a better question is to know if I can reset to default, all settings the settings/history of compensation?

    It turned out that, I contacted HP by phone and received excellent help.

    There is a subset menu which can be found when you press the icon 'back'... on the icon outside the lit display that doesn't show until you type.  They had me find the appropriate page and make a "partial reset".  Brings back the printer to the page where the next time it is turned on, it will ask for questions of initial set-up and all the memory is deleted.  So I have been able to give the machine to the local women's organization helping women with no problems that I can also gave a list of contacts!  Thanks to HP for the excellent customer service!

  • Compare and get the data in the tables (see post for details)

    I have two tables TableA and TableB. I struggle to write a query to get the dates of TableB (instead of TableA dates) where TableA dates don't coincide with the tableB (beginning and end).

    Example 1: For account A1234,.

    TableA got 2 rows 1/31/2014-3/3/2014 (which corresponds to TableB row), but TableA got another rank 31/01/2014 - 31/01/2014 that corresponds with the date of TableB Begin. In this case, I'm looking for output as below,

    Use TableB start and end date and combine number two rows from TableA for this account

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    A123431/01/201403/03/2014100.0000000000

    Example 2: For the B7777 account.

    TableA end date aligns with the end dates of TableB for this account, in this case I want out put as,.

    Use TableB start and end date and get the amount of TableA

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    B777705/04/201306/05/2013200.0000000000

    Example 3: On behalf of D5555,.

    Even a TableA line corresponds with TableA, there are two other rows in TableA matching start date with TableA and correspondence with the end date with TableA, in this case, that I put as,.

    Use TableB start and end date and combine number three rows from TableA for this account.

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    D555508/08/201410/09/20141100.0000000000

    Example 4: To account E6666.

    Table corresponds to a row with TableB and no additional lines in TableA, just display the data in A table

    Tables and data:

    create table TableA
    (
      Account varchar2(10) not null,
      Begin   date not null,
      End     date not null,
      Amount  number(19,10) not null
    )
    ;
    
    
    create table TableB
    (
      Account varchar2(10) not null,
      Begin   date not null,
      End     date not null,
      Amount  number(19,10) not null
    )
    ;
    
    
    TableA Data:
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('31-01-2014', 'dd-mm-yyyy'), 0.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('B7777', to_date('18-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 120.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('C6666', to_date('25-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('16-08-2014', 'dd-mm-yyyy'), 1000.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 0.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('16-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    TableB Data:
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('B7777', to_date('05-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 200.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('C6666', to_date('06-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 1100.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    
    
    SELECT A.ACCOUNT,
           A.BEGIN,
           A.END,
           A.AMOUNT,
           B.ACCOUNT,
           B.BEGIN,
           B.END,
           B.AMOUNT
      FROM TABLEA A
      LEFT JOIN TABLEB B
        ON A.ACCOUNT = B.ACCOUNT
    

    Hello

    SeshuGiri wrote:

    Hi Frank,.

    Your query/solution works very well, but I forgot to mention something in the first post...

    Please insert these additional lines and try the request again.

    TableA Additional lines:

    1. Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
    2. values ('F9999', to_date (January 2, 2014 ',' dd-mm-yyyy ""), to_date (3 January 2014 ', 'dd-mm-yyyy'), 999.0000000000);
    3. Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
    4. values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);

    TableB Additional lines:

    1. Insert into TABLEb (ACCOUNT, BEGIN, END, QUANTITY)
    2. values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);

    Question 1:

    The table has a rows for A1234 account (i.e. the time period different than the ranks for the same account)

    one is A1234 31/01/2014-03/03/2014, A1234 03/03/2014-03/04/2014

    Your query that returns two rows for A1234 account (which is what I want), but the amount is messed up.

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 1100
    2 A1234 03/03/2014 03/04/2014 1100

    Except:

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 101
    2 A1234 03/03/2014 03/04/2014 999

    Question 2:

    In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?

    I don't get the results with additional data. I get 1099 for two lines where account = 'A1234 '.  I get 1100 as the amount on the line with the account = "D5555.  You did it other changes to data?

    Except:

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 101
    2 A1234 03/03/2014 03/04/2014 999

    Still, I don't see why you want to 101 for the amount of the first row.  Why not 100?

    How can you know which rows from tablea should get attached to what rows from tableb, when the account is not unique?

    Maybe you want something like this:

    SELECT a.account

    b.begin

    b.end

    SUM (a.amount) AS total_amount

    FROM tablea a

    ON a.account = b.account JOIN tableb B

    AND a.begin BETWEEN b.begin

    AND b.end

    AND a.end BETWEEN b.begin

    AND b.end

    GROUP OF a.account, b.begin, b.end

    ORDER BY a.account

    ;

    but I guess just to your needs, and guessing is not a very good or reliable way to solve problems.

    Question 2:

    In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?

    Yes, it looks that you want an outer join.  What happened when you tried?  As always, post your code, the exact results you want from the given sample data, as well as an explanation of how you get these results from these data.

  • ADF clear the table of filter criteria in the sub-tab

    Scenario: Parent Page has an input field main and two strips of void. Each sub tab is a taskflow region.

    second sub-tab contains a table with filter enabled.

    whenever the data is changed in a main entry field, the data contained in the sub tabs need to be updated and the filter criteria table previous if everything must be deleted.

    Approach: To do this, I raise a contextual event of the main entry field to call the second sub-tab clearFilter method that looks at below.

    public void clearFilter() {}

    If (GetTable ()! = null) {}

    FilterableQueryDescriptor = queryDescriptor

    (FilterableQueryDescriptor) getTable () .getFilterModel ();

    If (queryDescriptor! = null & & queryDescriptor.getFilterCriteria ()! = null) {}

    queryDescriptor.getFilterCriteria () .clear ();

    .queueEvent (getTable (new QueryEvent (getTable, queryDescriptor)));

    }

    }

    }

    Question: When I'm in the second tab and then change something in the main, contextual event entry field and filter of the table in the second tab is cleared.

    But if I enter a filter in the second tab, move to the first tab and then change something in the main entry field. contextual event does not run.

    When I get back to the second tab, I can still see previous criteria. The contextual event handler method is not called.

    Please suggest how to solve this problem. Contextual events will be called only if the Subscriber is visible on the page?

    Can I erase the layer model filter without having to use the table binding?

    Or is there a better approach to do?

    Hello

    That's because contextual events propagate active links, including the second tab does not contain when it is hidden. So try to trigger the popup event in response to an event of disclosure tab (on the showDetail) so that when users switch tab, then filter is removed. To avoid unnecessary event context-sensitive invications you can set a flag each time the data in the parent page changes. If this flag is not set, no contextual event is raised

    Frank

  • All my attempts so far to generate the table of contents for Kindle (.mobi) failed. Can anyone help?

    I used InDesign CC to create an epub file and the TOC and the Navigation bar appear perfectly in Adobe Digital Editions (version 3.0). Then I saved the file to the IDML format open InDesign CS6 and use the Kindle Plugin to create a mobi file. I use the same style of table materials used to create the epub file, but although Kindlegen validates the file, the table of contents is unable to generate. I've been on several discussion forums and many people express problems by having their TOC displayed in Kindle Previewer. Can anyone help?

    Hello

    Kindle requires a separate html file for OCD and even must be referenced in the guide in content.opf element. In your InDesign CC document, generate the table of contents on a page and make sure the option 'Make the anchor text to the source paragraph' is checked.

    Now export the EPUB 3 file. Open EPUB in Sigil (it's a free EPUB editor of Google). Menu Goto tools-> Table of contents-> generate HTML Table of contents. This creates a new xhtml file and automatically adds the element of guidance in content.opf like this:

    Save EPUB and open directly into Kindle Previewer. Table of contents option must be turned on now and should work.

    Please try and let me know if it works.

    Kind regards

    POOJA

    InDesign engineering

  • Customize the table of contents for epub book

    Hello

    I have a book in ID CS6 file, containing ten chapters, each in its own starting with style heading 1 to "Chapter 1", "2", "Chapter 3" etc. It also contains more documents to cover, notes copyright, acknowledgement of receipt, info editor etc. (not quite formatted).

    Well, when I export to epub and open it in Adobe Digital Editions a table of contents is generated from all the documents, the names of files.

    Is it possible to exclude the entries, I want to be there?

    In addition, I can control the text of each entry? for example, the "cr.indd" file, I want the Notes"copyright" text in TOC.

    Thank you

    Short answer: you can control the TOC navigation by creating a table of contents Style (layout > Style of Table of contents) and including a paragraph style that you want that pulls the titles that you want in the table of contents.

    Then call on this Style of table of contents in the general Panel of the EPUB export dialog box.

    Looks like you need to get some basic information on creating ePub files. Here are the two best sources I know:

    (1) the books of Elizabeth Castro:

    http://www.elizabethcastro.com/EPUB/

    (2) videos of Anne-Marie Concepcion on Lynda.com. She produced videos on creating EPUB from InDesign CS5, 5.5, and 6. www.Lynda.com. (if Bob Levine sees this, it will add a free link of the week for Lynda.com).

  • clear the table in the OPS

    Hello

    I have a search page where the data is displayed in a table based on the search button. How to erase the data displayed in the table when you press a key "clear"?

    I used

    VO. Reset();
    vo.clearCache ();

    but they did not work.

    Thank you
    PK

    Hello

    Define where the clause of your VO as 1 = 2 and then run query on VO, table fade as a query with where clause as 1 = 2 can never pick a data.

    Kind regards
    Out Sharma

  • What the tables in return for Hyperion Planning

    Hi gurus,
    I need to save Hyperion Planning application database tables. I don't know what I need to back up the tables. Could someone share the names of tables or the docs that could help me.

    Thank you
    Rahul-

    Hello Rahul,

    You must take the backup of application schema of planning instead of the planning tables.

    Hyperion 9.3.1 - 78 tables created on the back-end
    Hyperion 11.1.1.1 - 83 tables created on the back-end

    Taking the backup scheme:
    -------------------------------------
    Using export dump utility, export Oracle dump file

    c:\expdp hypapp/hypapp@hyperion dumpfile = pra.dmp

    Note: the above dump file stored in the mentioned location below
    Oracle 10g: G:\oracle\product\10.2.0\admin\orcl\dpdump\pra.dmp
    Oracle 11g: E:\app\Administrator\admin\hyperion\dpdump\pra.dmp

    Please get back to me if in doubt.

    Thank you
    PC

  • Name of the table to query for the time window of work

    I am trying to build a query for a list of jobs in tide. Anyone know what table is for the time window? Please notify. Thank you.

    Hi Warren, according to me, this is the jobdtl table.

    jobdtl_fromtm and jobdtl_untiltm

  • What is the table/column name for group of segments data

    Hello!

    I'm looking at the specific table/columns that contain the values for the segments of people group by assignment. Well want to can someone tell me.

    Thank you.

    Jon

    Join the pay_people_groups with per_all_assignments_f with the people_group_id of the column

Maybe you are looking for