For the Enigma of the loop

Hi, I have a loop that refuses to perform. Please see below. I have NO IDEA why this happens, no errors are produced or whatever it is. If I'm drunk!

Help, please!

Thank you, Alec

Tbob,

I think the problem with your solution is that it limited to one set of elements at the beginning of the table.  To access several items that are disconnected and do not start an element 0 will result in a more complicated programming.

I'm not so sure, that original screenshot of OP reflects what he wants to do.  But if you have an 86 item Boolean array where some are true, others are false, and you have an array of 86 element Boolean where some are true and are used to change certain elements from the first array to True, then the simplest thing to do would be where the two tables.  All that was true remains true.  All that was false will turn to the True value if the corresponding element is set to True in table 2.

Tags: NI Software

Similar Questions

  • For the loop + shift register + multiply instances


    Save the Subvi as model.

    Opened using the switch (8 hex) returning so that it opens a new instance of each opening. Move the refs to your loop and use 'Call Server reference VI' to call the right instance for each iteration.

    But beeter would be to keep the table of cluster in a SR in the loop For, rather than the sub - VI and just pass in the State of the last time that the sub - VI has been called.

    Or another approach...

    Do some reading and the stuff of sub - VI in an instance of a model, one for each counter. They can push their updates to the queues so that others can see what they found.

    Ben

  • For the loop jump

    Hello

    How can I break the loop if all checkboxes (A, B, C) of all lines (the Row1 [*]) are disabled?

    The code below in the click event of a button and it shows the message box for all the number of lines and is not working as I want.

    Thank you.

    var nods = xfa.resolveNodes("pctA.A.Row1[*].Q");
    for (var i = 0; i < nods.length; i++)
    
    if (nods.item(i).A.rawValue == "0" && nods.item(i).B.rawValue == "0" && nods.item(i).C.rawValue == "0")
    {
         xfa.host.messageBox("Warning1!\n\nWarning2", "WTitle", 0, 0);
    }
    else
    
    {//continue with code}
    

    Hello

    I think that you should use the keyword break after the messageBox, so;

    Winks var = xfa.resolveNodes ("pctA.A.Row1 [*]." "") « « Q ») ;

    for (var i = 0; i)< nods.length;="" i++) ="" if="" (nods.item(i).a.rawvalue="=" "0"="" &&="" nods.item(i).b.rawvalue="=" "0"="" &&="" nods.item(i).c.rawvalue="=">

    {

    xfa.host.messageBox ("Warning1! \n\nWarning2 ","WTitle", 0, 0);

    break;

    }

    on the other

    {//continue with code}

    Concerning

    Bruce

  • Cursor implicit FOR THE LOOP and WHERE CURRENT OF

    Is it possible to add some updates and WHERE CURRENT OF for an implicit cusror of LOOPS?  There seems to be no way to reference the cursor as you can with an explicit cursor.

    BEGIN

    FOR point IN)

    SELECT last_name, job_id

    Employees

    WHERE job_id LIKE '% % CLERK '.

    AND manager_id > 120

    ORDER BY name

    )

    LOOP

    ...

    ...

    ...

    END LOOP;

    END;

    /

    Thank you

    It must be an explicit cursor.

  • AS3/AIR - for the loop is ignored but the rest of the function to run

    This has left me speechless. It is either something really stupid on my part or part of the Flash. Here goes:

    I have a function that accepts all simply a table of movieclip references, executes a loop to add them to a sprite container, then the container gives a background color. It works perfectly the first time. Now, when the program returns to this feature yet it completely ignores the loop but always adds the background color. Here's the function:

    public void prepareContainer (sections): Sprite

    {

    trace ("prepareContainer called.");

    trace ("cuts" + sections);

    containerClips.splice(0,containerClips.length);

    trace ("containerClips.length is" + containerClips.length);

    for (var rs: int = 0; rs < sections.length; rs ++)

    {

    trace ("sections [" + rs + "] is" + [rs] sections);

    }

    var w: Number = 0;

    var l:Number = 0;

    for (var sx:int = 0; sx < sections.length; sx ++)

    {

    trace ("sx is" + sx);

    section of the sections [sx] = var;

    If (SX > 0)

    {

    section.y = sections [sx-1] there + .height sections [sx-1];

    w = section.width;

    l = l + section.height;

    }

    container.addChild (section);

    }

    container.graphics.beginFill (0xfafafa); Just for the background color in the container.

    container.graphics.drawRect (0,0,w,l);

    container.graphics.endFill ();

    containerClips = sections;

    for (var p:int = 0; p < containerClips.length; p ++)

    {

    trace ("containerClips [" + p + "] is" + containerClips [p]);

    }

    return the container;

    }

    You can also see that I have traces in the service to trace the content and the length of the incoming array.

    It's track of the first time through:

    called prepareContainer!

    sections.length is [object ViewPrevTranClosed_AEM], [medicareHead_AEM object], [object NAMEsubscriberSection_AEM], [object SearchInformationSection_AEM]

    containerClips.length is 0

    sections [0] is [object ViewPrevTranClosed_AEM]

    sections [1] is [object medicareHead_AEM]

    sections [2] is [object NAMEsubscriberSection_AEM]

    sections [3] is [object SearchInformationSection_AEM]

    SX is 0

    SX is 1

    SX is 2

    SX is 3

    containerClips [0] is [object ViewPrevTranClosed_AEM]

    containerClips [1] is [object medicareHead_AEM]

    containerClips [2] is [object NAMEsubscriberSection_AEM]

    containerClips [3] is [object SearchInformationSection_AEM]

    ============================================

    As you can see, the traces in the loops went very well and the result is as expected. The container is filled with the movieclips. However, on the next time through the result is that the background color and none of the movieclips are added to the container. The following trace shows also that the loops did not stand even if the table is full and there is no condition that stop the loops. This is the inside track:

    called prepareContainer!

    sections.length is [object ViewPrevTranClosed_AEM], [medicareHead_AEM object], [object NAMEsubscriberSection_AEM], [object SearchInformationSection_AEM]

    containerClips.length is 0

    Any ideas on what is the cause?

    You can have a circular reference. containerClips is the same table that the sections. Try this simple test:

    array1 = [1,2,3,4] var;

    var array2 = array1;

    array1.splice(0,array1.) Length);

    array1 = [];

    trace (array2. Length);

    I'm sure that you expect to see it trace 4, but it trace 0. Now try to use the line commented out instead. Now you get a record of 4.

    If somewhere in your code you establish sections also point to the same table as containerClips, that you really wanted to duplicate a table, you can use the concat:

    Var items = containerClips.concat ();

    It would be either his own picture double and a pointer to the same table.

  • a plus for the loop

    I'm sorry to disturbed you.

    I need a logic for the output below... even with for loop
                              1                                             
                           2    2
                          3  3   3
                        4   4   4   4
                      5   5   5   5   5                     
    
    and
    
    
                                   1
                               1      2
                            1     2      3 
                         1     2     3    4
                     1   2    3     4        5
    concerning
    SA

    Edited by: 871270 March 28, 2013 10:55

    Hello

    Solomon Yakobson says:

    ... There is no need for a pipe character in fist postion to make dbms_output output to line up. Just use serveroutput wrapped format:
    ...
    SQL> set serveroutput on format wrapped
    

    Thank you!

  • For the loop index rebuild

    DB version 10.2
     BEGIN
          FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('PORT') and index_type='NORMAL')
          LOOP
       EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' REBUILD nologging parallel 4 ';
          5      dbms_output.put_line('-----------------');
             --EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || 'NOPARALLEL';
          END LOOP;
          begin
         FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('PORT') and index_type='NORMAL')
         LOOP
         EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || 'NOPARALLEL';
         end loop;
         end;
       END;
       /
    When I try to do more high I am hit with ORA-02242 after reconstitution with nologging parallel 4. But when I run manually
     ALTER INDEX'  <index_name> NOPARALLEL 
    then ok.

    Some can help me please

    ERROR on line 1:
    ORA-02242: no option specified for the ALTER INDEX statement
    ORA-06512: at line 11 level
    BEGIN
          FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('EMPLOYEES') and index_type='NORMAL')
          LOOP
              EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' REBUILD nologging parallel 4 ';
              EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' NOPARALLEL ';
           END LOOP;
    END;
    / 
    
  • IN XML for the loop

    Hello
    Model RTF PO, I try to display the short text and long text for each PO. But I'm unable to display multiple short and long texts for each line number. I can view only the first short and long text for each line number. How do I show all the. The seeds IN. model does. Here's my code and XML


    for short text (short_text is in the same column that line_num is the rich TEXT table)

    <? for each: LINES_ROW? > <? type: LINE_NUM; ' ascending '; type_donnees = "number"? >

    <? LINE_NUM? > <? date format: NEED_BY_DATE; "DD-MMM-YYYY'? > <? LINE_AMOUNT? >
    <? ITEM_DESCRIPTION? >
    <? SHORT_TEXT? >

    <? end foreach? >

    output is
    No. 1 line
    short attachment test
    Line num 2
    short text 1

    output must be
    No. 1 line
    short attachment test
    Attachment 4 t
    Line num 2
    short text 1
    short text 2

    Long text
    <? If: PO_DATA/LINE_ATTACHMENTS/TEXT! ='' ? >
    <? for each: LINES_ROW? > <? type: LINE_NUM; ' ascending '; type_donnees = "number"? >
    <? If: LINE_NUM! ='' ? > <? Concat ("' line number", LINE_NUM)? > <? end if? >
    <? variable@InContext:PoLnID;' PO_LINE_ID'? >
    <? / PO_DATA/LINE_ATTACHMENTS/ID [child::text () = $PoLnID] / preceding - sibling:TEXT [1]? >

    <? end foreach? >
    <? end if? >

    output is
    No. 1 line
    attachment of long text which is 2nd ote
    Line num 2
    long text 1

    output must be
    No. 1 line
    attachment of long text which is 2nd ote
    see this 5th long accessory
    Line num 2
    long text 1
    long text 2



    Here is an example of XML code

    <? XML version = "1.0" encoding = "UTF-8"? >
    < PO_DATA >
    STANDARD of < TYPE_LOOKUP_CODE > < / TYPE_LOOKUP_CODE >
    < > 24687 SEGMENT1 < / SEGMENT1 >
    < REVISION_NUM > 0 < / REVISION_NUM >
    < PRINT_COUNT > 3 < / PRINT_COUNT >
    < CREATION_DATE > 29 April 2009 14:28:52 < / CREATION_DATE >
    < NOTE_TO_VENDOR > This is a good test for the conditions window provider command < / NOTE_TO_VENDOR >
    Sanjay < DOCUMENT_BUYER_FIRST_NAME > < / DOCUMENT_BUYER_FIRST_NAME >
    Kumar < DOCUMENT_BUYER_LAST_NAME > < / DOCUMENT_BUYER_LAST_NAME >
    < DOCUMENT_BUYER_AGENT_ID > 8756 < / DOCUMENT_BUYER_AGENT_ID >
    < CANCEL_FLAG > N < / CANCEL_FLAG >
    < CONFIRMING_ORDER_FLAG > N < / CONFIRMING_ORDER_FLAG >
    < ACCEPTANCE_REQUIRED_FLAG > N < / ACCEPTANCE_REQUIRED_FLAG >
    USD < CURRENCY_CODE > < / CURRENCY_CODE >
    < CURRENCY_NAME > United States dollar < / CURRENCY_NAME >
    < PAYMENT_TERMS > NET 30 < / PAYMENT_TERMS >
    < > 1244 CUSTOMER_NUM < / CUSTOMER_NUM >
    RR10 < VENDOR_NUM > < / VENDOR_NUM >
    < $vendor_name > OFFICE DEPOT < / $vendor_name >
    < VENDOR_ADDRESS_LINE1 > B.P. 31533 < / VENDOR_ADDRESS_LINE1 >
    HARTFORD < VENDOR_CITY > < / VENDOR_CITY >
    < VENDOR_STATE > CT < / VENDOR_STATE >
    < VENDOR_POSTAL_CODE > 06150 - 1533 < / VENDOR_POSTAL_CODE >
    < SHIP_TO_LOCATION_ID > 88 < / SHIP_TO_LOCATION_ID >
    < SHIP_TO_LOCATION_NAME > US CORPORATE HDQTRS < / SHIP_TO_LOCATION_NAME >
    < SHIP_TO_ADDRESS_LINE1 > JFK 123 RD < / SHIP_TO_ADDRESS_LINE1 >
    Broadway, WA 02421 < SHIP_TO_ADDRESS_INFO > < / SHIP_TO_ADDRESS_INFO >
    the < SHIP_TO_COUNTRY > United States < / SHIP_TO_COUNTRY >
    < BILL_TO_LOCATION_ID > 88 < / BILL_TO_LOCATION_ID >
    < BILL_TO_LOCATION_NAME > US CORPORATE HDQTRS < / BILL_TO_LOCATION_NAME >
    < BILL_TO_ADDRESS_LINE1 > JFK 123 RD < / BILL_TO_ADDRESS_LINE1 >
    Broadway, WA 02421 < BILL_TO_ADDRESS_INFO > < / BILL_TO_ADDRESS_INFO >
    the United States < BILL_TO_COUNTRY > < / BILL_TO_COUNTRY >
    MY < ATTRIBUTE1 > < / ATTRIBUTE1 >
    < VENDOR_SITE_ID > 9983 < / VENDOR_SITE_ID >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < APPROVED_FLAG > N < / APPROVED_FLAG >
    < > 826 VENDOR_ID < / VENDOR_ID >
    < ORG_ID > 29 < / ORG_ID >
    < COMMENT > IN. test to test the template < / COMMENT >
    < FIRM_STATUS_LOOKUP_CODE > N < / FIRM_STATUS_LOOKUP_CODE >
    < FROZEN_FLAG > N < / FROZEN_FLAG >
    < > 3349 CREATED_BY < / CREATED_BY >
    < TERMS_ID > 10001 < / TERMS_ID >
    < RATE_DATE > 29 April 2009 00:00:00 < / RATE_DATE >
    < AUTHORIZATION_STATUS > N < / AUTHORIZATION_STATUS >
    < NOTE_TO_RECEIVER > This is a purchase order of the receiver of window conditions test < / NOTE_TO_RECEIVER >
    < LAST_UPDATE_DATE > 29 April 2009 14:30:52 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < SUMMARY_FLAG > N < / SUMMARY_FLAG >
    < ENABLED_FLAG > Y < / ENABLED_FLAG >
    < LAST_UPDATE_LOGIN > 1250381 < / LAST_UPDATE_LOGIN >
    < SUPPLY_AGREEMENT_FLAG > N < / SUPPLY_AGREEMENT_FLAG >
    < PENDING_SIGNATURE_FLAG > N < / PENDING_SIGNATURE_FLAG >
    < OU_NAME > ABC LTD. < / OU_NAME >
    < OU_ADDR1 > JFK 123 RD < / OU_ADDR1 >
    Broadway < OU_TOWN_CITY > < / OU_TOWN_CITY >
    WA < OU_REGION2 > < / OU_REGION2 >
    < OU_POSTALCODE > 44421 < / OU_POSTALCODE >
    the United States < OU_COUNTRY > < / OU_COUNTRY >
    < BUYER_ADDRESS_LINE1 > JFK 123 RD < / BUYER_ADDRESS_LINE1 >
    Broadway, WA 44421 < BUYER_CITY_STATE_ZIP > < / BUYER_CITY_STATE_ZIP >
    < BUYER_CONTACT_PHONE > 322-445-4533 < / BUYER_CONTACT_PHONE >
    < > 6,000.00 TOTAL_AMOUNT < / TOTAL_AMOUNT >
    the United States < BUYER_COUNTRY > < / BUYER_COUNTRY >
    < DOCUMENT_CREATION_METHOD > ENTER_PO < / DOCUMENT_CREATION_METHOD >
    Purchase Standard < DOCUMENT_TYPE > order < / DOCUMENT_TYPE >
    < COVER_MESSAGE > This document has important legal consequences. < / COVER_MESSAGE >
    < AMMENDMENT_MESSAGE > This document has important legal consequences.
    < / AMMENDMENT_MESSAGE >
    D < TEST_FLAG > < / TEST_FLAG >
    < DIST_SHIPMENT_COUNT > 1 < / DIST_SHIPMENT_COUNT >
    Standard purchase order < DocumentName > 24687, 0 < / DocumentName >
    F < SIGNED > < / SIGNED >
    < AMENDMENT_PROFILE > Y < / AMENDMENT_PROFILE >
    < WITH_TERMS > N < / WITH_TERMS >
    < IS_ATTACHED_DOC > Y < / IS_ATTACHED_DOC >
    < MESSAGE >
    < MESSAGE_ROW >
    < MESSAGE > PO_FO_AGREEMENT_CANCELED < / MESSAGE >
    < TEXT > this contract CANCELLED on < / TEXT >
    < / MESSAGE_ROW >
    < MESSAGE_ROW >
    < MESSAGE > PO_WF_NOTIF_VENDOR_NO < / MESSAGE >
    SupplierID < TEXT > < / TEXT >
    < / MESSAGE_ROW >
    < / MESSAGE >
    < HEADER_SHORT_TEXT >
    < / HEADER_SHORT_TEXT >
    <>LINES
    < LINES_ROW >
    < LINE_NUM > 1 < / LINE_NUM >
    < ITEM_DESCRIPTION > test in. < / ITEM_DESCRIPTION >
    < CANCEL_FLAG > N < / CANCEL_FLAG >
    < NOTE_TO_VENDOR > This is a test in. do not ship. < / NOTE_TO_VENDOR >
    Unit of < UNIT_MEAS_LOOKUP_CODE > < / UNIT_MEAS_LOOKUP_CODE >
    AMOUNT of < ORDER_TYPE_LOOKUP_CODE > < / ORDER_TYPE_LOOKUP_CODE >
    N < ATTRIBUTE1 > < / ATTRIBUTE1 >
    < UNIT_PRICE > 5000 < / UNIT_PRICE >
    < QUANTITY > 1 < / QUANTITY >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < PO_LINE_ID > 53995 < / PO_LINE_ID >
    < ORG_ID > 29 < / ORG_ID >
    < UNORDERED_FLAG > N < / UNORDERED_FLAG >
    < CLOSED_FLAG > N < / CLOSED_FLAG >
    < TAXABLE_FLAG > N < / TAXABLE_FLAG >
    < CAPITAL_EXPENSE_FLAG > N < / CAPITAL_EXPENSE_FLAG >
    < NEGOTIATED_BY_PREPARER_FLAG > N < / NEGOTIATED_BY_PREPARER_FLAG >
    < LAST_UPDATE_DATE > 29 April 2009 14:29:36 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < LINE_TYPE_ID > 1000 < / LINE_TYPE_ID >
    < LAST_UPDATE_LOGIN > 1250381 < / LAST_UPDATE_LOGIN >
    < CREATION_DATE > 29 April 2009 14:28:52 < / CREATION_DATE >
    < > 3349 CREATED_BY < / CREATED_BY >
    < Stuff > 224 < / stuff >
    < ALLOW_PRICE_OVERRIDE_FLAG > N < / ALLOW_PRICE_OVERRIDE_FLAG >
    < LIST_PRICE_PER_UNIT > 5000 < / LIST_PRICE_PER_UNIT >
    AMOUNT of < LINE_TYPE > < / LINE_TYPE >
    GOODS of < PURCHASE_BASIS > < / PURCHASE_BASIS >
    < LINE_AMOUNT > 5 000,00 < / LINE_AMOUNT >
    < MANUAL_PRICE_CHANGE_FLAG > N < / MANUAL_PRICE_CHANGE_FLAG >
    AMOUNT of < MATCHING_BASIS > < / MATCHING_BASIS >
    < PRICE_DIFF >
    < / PRICE_DIFF >
    * < LINE_SHORT_TEXT > *.
    * < LINE_SHORT_TEXT_ROW > *.
    * < PO_LINE_ID > 53995 < / PO_LINE_ID > *.
    * < test SHORT_TEXT > for the short attachment < / SHORT_TEXT > *.
    * < / LINE_SHORT_TEXT_ROW > *.
    * < LINE_SHORT_TEXT_ROW > *.
    * < PO_LINE_ID > 53995 < / PO_LINE_ID > *.
    * < SHORT_TEXT > 4th attachment < / SHORT_TEXT > *.
    * < / LINE_SHORT_TEXT_ROW > *.
    * < / LINE_SHORT_TEXT > *.
    < LINE_LOCATIONS >
    < LINE_LOCATIONS_ROW >
    < SHIPMENT_NUM > 1 < / SHIPMENT_NUM >
    < end_date > 15 May 2009 00:00:00 < / end_date >
    < QUANTITY > 1 < / QUANTITY >
    < PRICE_OVERRIDE > 5000 < / PRICE_OVERRIDE >
    < QUANTITY_CANCELLED > 0 < / QUANTITY_CANCELLED >
    < CANCEL_FLAG > N < / CANCEL_FLAG >
    < TAXABLE_FLAG > N < / TAXABLE_FLAG >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < PO_LINE_ID > 53995 < / PO_LINE_ID >
    < LINE_LOCATION_ID > 53678 < / LINE_LOCATION_ID >
    STANDARD of < SHIPMENT_TYPE > < / SHIPMENT_TYPE >
    < RECEIVING_ROUTING_ID > 3 < / RECEIVING_ROUTING_ID >
    < ACCRUE_ON_RECEIPT_FLAG > N < / ACCRUE_ON_RECEIPT_FLAG >
    < ORG_ID > 29 < / ORG_ID >
    < RECEIPT_REQUIRED_FLAG > N < / RECEIPT_REQUIRED_FLAG >
    < QTY_RCV_TOLERANCE > 10 < / QTY_RCV_TOLERANCE >
    WARNING < QTY_RCV_EXCEPTION_CODE > < / QTY_RCV_EXCEPTION_CODE >
    < ENFORCE_SHIP_TO_LOCATION_CODE > NO < / ENFORCE_SHIP_TO_LOCATION_CODE >
    < ALLOW_SUBSTITUTE_RECEIPTS_FLAG > N < / ALLOW_SUBSTITUTE_RECEIPTS_FLAG >
    < DAYS_EARLY_RECEIPT_ALLOWED > 5 < / DAYS_EARLY_RECEIPT_ALLOWED >
    < DAYS_LATE_RECEIPT_ALLOWED > 5 < / DAYS_LATE_RECEIPT_ALLOWED >
    WARNING < RECEIPT_DAYS_EXCEPTION_CODE > < / RECEIPT_DAYS_EXCEPTION_CODE >
    < INVOICE_CLOSE_TOLERANCE > 2 < / INVOICE_CLOSE_TOLERANCE >
    < RECEIVE_CLOSE_TOLERANCE > 100 < / RECEIVE_CLOSE_TOLERANCE >
    < SHIP_TO_ORGANIZATION_ID > 208 < / SHIP_TO_ORGANIZATION_ID >
    OPEN < CLOSED_CODE > < / CLOSED_CODE >
    < LAST_ACCEPT_DATE > 9 May 2009 00:00:00 < / LAST_ACCEPT_DATE >
    < ENCUMBERED_FLAG > N < / ENCUMBERED_FLAG >
    < FIRM_STATUS_LOOKUP_CODE > N < / FIRM_STATUS_LOOKUP_CODE >
    < LAST_UPDATE_DATE > 29 April 2009 14:31:31 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < LAST_UPDATE_LOGIN > 1250381 < / LAST_UPDATE_LOGIN >
    < CREATION_DATE > 29 April 2009 14:28:53 < / CREATION_DATE >
    < > 3349 CREATED_BY < / CREATED_BY >
    < QUANTITY_RECEIVED > 0 < / QUANTITY_RECEIVED >
    < QUANTITY_ACCEPTED > 0 < / QUANTITY_ACCEPTED >
    < QUANTITY_REJECTED > 0 < / QUANTITY_REJECTED >
    < QUANTITY_BILLED > 0 < / QUANTITY_BILLED >
    Unit of < UNIT_MEAS_LOOKUP_CODE > < / UNIT_MEAS_LOOKUP_CODE >
    < TAX_USER_OVERRIDE_FLAG > N < / TAX_USER_OVERRIDE_FLAG >
    < MATCH_OPTION > P < / MATCH_OPTION >
    < CALCULATE_TAX_FLAG > Y < / CALCULATE_TAX_FLAG >
    < NOTE_TO_RECEIVER > This is a note in the receiver shipments < / NOTE_TO_RECEIVER >
    < AMOUNT > 5 000,00 < / AMOUNT >
    < SHIP_TO_LOCATION_ID > 88 < / SHIP_TO_LOCATION_ID >
    < SHIP_TO_LOCATION_NAME > US CORPORATE HDQTRS < / SHIP_TO_LOCATION_NAME >
    < SHIP_TO_ADDRESS_LINE1 > JFK 123 RD < / SHIP_TO_ADDRESS_LINE1 >
    Broadway, WA 02421 < SHIP_TO_ADDRESS_INFO > < / SHIP_TO_ADDRESS_INFO >
    the < SHIP_TO_COUNTRY > United States < / SHIP_TO_COUNTRY >
    < NEED_BY_DATE > 15 May 2009 00:00:00 < / NEED_BY_DATE >
    < PROMISED_DATE > 4 May 2009 00:00:00 < / PROMISED_DATE >
    < LINE_LOC_SHORT_TEXT >
    < / LINE_LOC_SHORT_TEXT >
    < DISTRIBUTION >
    < DISTRIBUTIONS_ROW >
    STANDARD < DISTRIBUTION_TYPE > < / DISTRIBUTION_TYPE >
    < ACCRUE_ON_RECEIPT_FLAG > N < / ACCRUE_ON_RECEIPT_FLAG >
    < ORG_ID > 29 < / ORG_ID >
    COSTS of < DESTINATION_TYPE_CODE > < / DESTINATION_TYPE_CODE >
    < DESTINATION_ORGANIZATION_ID > 208 < / DESTINATION_ORGANIZATION_ID >
    < ACCRUAL_ACCOUNT_ID > 1037 < / ACCRUAL_ACCOUNT_ID >
    < VARIANCE_ACCOUNT_ID > 22148 < / VARIANCE_ACCOUNT_ID >
    < PREVENT_ENCUMBRANCE_FLAG > N < / PREVENT_ENCUMBRANCE_FLAG >
    < PO_DISTRIBUTION_ID > 55228 < / PO_DISTRIBUTION_ID >
    < LAST_UPDATE_DATE > 29 April 2009 14:32:23 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < PO_LINE_ID > 53995 < / PO_LINE_ID >
    < LINE_LOCATION_ID > 53678 < / LINE_LOCATION_ID >
    < SET_OF_BOOKS_ID > 25 < / SET_OF_BOOKS_ID >
    < CODE_COMBINATION_ID > 22148 < / CODE_COMBINATION_ID >
    < QUANTITY_ORDERED > 1 < / QUANTITY_ORDERED >
    < LAST_UPDATE_LOGIN > 1250381 < / LAST_UPDATE_LOGIN >
    < CREATION_DATE > 29 April 2009 14:28:54 < / CREATION_DATE >
    < > 3349 CREATED_BY < / CREATED_BY >
    < QUANTITY_DELIVERED > 0 < / QUANTITY_DELIVERED >
    < QUANTITY_BILLED > 0 < / QUANTITY_BILLED >
    < QUANTITY_CANCELLED > 0 < / QUANTITY_CANCELLED >
    < DELIVER_TO_LOCATION_ID > 89 < / DELIVER_TO_LOCATION_ID >
    < DELIVER_TO_PERSON_ID > 5324 < / DELIVER_TO_PERSON_ID >
    < RATE_DATE > 29 April 2009 00:00:00 < / RATE_DATE >
    < ENCUMBERED_FLAG > N < / ENCUMBERED_FLAG >
    < RECOVERY_RATE > 0.00 < / RECOVERY_RATE >
    < TAX_RECOVERY_OVERRIDE_FLAG > N < / TAX_RECOVERY_OVERRIDE_FLAG >
    COSTS of < DESTINATION_CONTEXT > < / DESTINATION_CONTEXT >
    < DISTRIBUTION_NUM > 1 < / DISTRIBUTION_NUM >
    < CHARGE_ACCOUNT > 05-3002-7050-000-000 < / CHARGE_ACCOUNT >
    < FULL_NAME > Devine, Alison < / FULL_NAME >
    [email protected] < EMAIL_ADDRESS > < / EMAIL_ADDRESS >
    Karen < REQUESTER_DELIVER_FIRST_NAME > < / REQUESTER_DELIVER_FIRST_NAME >
    MY < REQUESTER_DELIVER_LAST_NAME > < / REQUESTER_DELIVER_LAST_NAME >
    < / DISTRIBUTIONS_ROW >
    < / DISTRIBUTION >
    < / LINE_LOCATIONS_ROW >
    < / LINE_LOCATIONS >
    < / LINES_ROW >
    < LINES_ROW >
    < LINE_NUM > 2 < / LINE_NUM >
    < ITEM_DESCRIPTION > TEST IN. < / ITEM_DESCRIPTION >
    < CANCEL_FLAG > N < / CANCEL_FLAG >
    Unit of < UNIT_MEAS_LOOKUP_CODE > < / UNIT_MEAS_LOOKUP_CODE >
    AMOUNT of < ORDER_TYPE_LOOKUP_CODE > < / ORDER_TYPE_LOOKUP_CODE >
    N < ATTRIBUTE1 > < / ATTRIBUTE1 >
    < UNIT_PRICE > 1000 < / UNIT_PRICE >
    < QUANTITY > 1 < / QUANTITY >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < PO_LINE_ID > 54015 < / PO_LINE_ID >
    < ORG_ID > 29 < / ORG_ID >
    < UNORDERED_FLAG > N < / UNORDERED_FLAG >
    < CLOSED_FLAG > N < / CLOSED_FLAG >
    < TAXABLE_FLAG > N < / TAXABLE_FLAG >
    < CAPITAL_EXPENSE_FLAG > N < / CAPITAL_EXPENSE_FLAG >
    < NEGOTIATED_BY_PREPARER_FLAG > N < / NEGOTIATED_BY_PREPARER_FLAG >
    < LAST_UPDATE_DATE > 30 April 2009 13:52:26 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < LINE_TYPE_ID > 1000 < / LINE_TYPE_ID >
    < LAST_UPDATE_LOGIN > 1251236 < / LAST_UPDATE_LOGIN >
    < CREATION_DATE > 30 April 2009 13:52:26 < / CREATION_DATE >
    < > 3349 CREATED_BY < / CREATED_BY >
    < Stuff > 224 < / stuff >
    < ALLOW_PRICE_OVERRIDE_FLAG > N < / ALLOW_PRICE_OVERRIDE_FLAG >
    < LIST_PRICE_PER_UNIT > 1000 < / LIST_PRICE_PER_UNIT >
    AMOUNT of < LINE_TYPE > < / LINE_TYPE >
    GOODS of < PURCHASE_BASIS > < / PURCHASE_BASIS >
    < LINE_AMOUNT > 1 000,00 < / LINE_AMOUNT >
    < MANUAL_PRICE_CHANGE_FLAG > N < / MANUAL_PRICE_CHANGE_FLAG >
    AMOUNT of < MATCHING_BASIS > < / MATCHING_BASIS >
    < PRICE_DIFF >
    < / PRICE_DIFF >
    * < LINE_SHORT_TEXT > *.
    * < LINE_SHORT_TEXT_ROW > *.
    * < PO_LINE_ID > 54015 < / PO_LINE_ID > *.
    * < SHORT_TEXT > 1 short text < / SHORT_TEXT > *.
    * < / LINE_SHORT_TEXT_ROW > *.
    * < LINE_SHORT_TEXT_ROW > *.
    * < PO_LINE_ID > 54015 < / PO_LINE_ID > *.
    * < SHORT_TEXT > 2 short text < / SHORT_TEXT > *.
    * < / LINE_SHORT_TEXT_ROW > *.
    * < / LINE_SHORT_TEXT > *.
    < LINE_LOCATIONS >
    < LINE_LOCATIONS_ROW >
    < SHIPMENT_NUM > 1 < / SHIPMENT_NUM >
    < end_date > 7 May 2009 00:00:00 < / end_date >
    < QUANTITY > 1 < / QUANTITY >
    < PRICE_OVERRIDE > 1000 < / PRICE_OVERRIDE >
    < QUANTITY_CANCELLED > 0 < / QUANTITY_CANCELLED >
    < CANCEL_FLAG > N < / CANCEL_FLAG >
    < TAXABLE_FLAG > N < / TAXABLE_FLAG >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < PO_LINE_ID > 54015 < / PO_LINE_ID >
    < LINE_LOCATION_ID > 53698 < / LINE_LOCATION_ID >
    STANDARD of < SHIPMENT_TYPE > < / SHIPMENT_TYPE >
    < RECEIVING_ROUTING_ID > 3 < / RECEIVING_ROUTING_ID >
    < ACCRUE_ON_RECEIPT_FLAG > N < / ACCRUE_ON_RECEIPT_FLAG >
    < ORG_ID > 29 < / ORG_ID >
    < RECEIPT_REQUIRED_FLAG > N < / RECEIPT_REQUIRED_FLAG >
    < QTY_RCV_TOLERANCE > 10 < / QTY_RCV_TOLERANCE >
    WARNING < QTY_RCV_EXCEPTION_CODE > < / QTY_RCV_EXCEPTION_CODE >
    < ENFORCE_SHIP_TO_LOCATION_CODE > NO < / ENFORCE_SHIP_TO_LOCATION_CODE >
    < ALLOW_SUBSTITUTE_RECEIPTS_FLAG > N < / ALLOW_SUBSTITUTE_RECEIPTS_FLAG >
    < DAYS_EARLY_RECEIPT_ALLOWED > 5 < / DAYS_EARLY_RECEIPT_ALLOWED >
    < DAYS_LATE_RECEIPT_ALLOWED > 5 < / DAYS_LATE_RECEIPT_ALLOWED >
    WARNING < RECEIPT_DAYS_EXCEPTION_CODE > < / RECEIPT_DAYS_EXCEPTION_CODE >
    < INVOICE_CLOSE_TOLERANCE > 2 < / INVOICE_CLOSE_TOLERANCE >
    < RECEIVE_CLOSE_TOLERANCE > 100 < / RECEIVE_CLOSE_TOLERANCE >
    < SHIP_TO_ORGANIZATION_ID > 208 < / SHIP_TO_ORGANIZATION_ID >
    OPEN < CLOSED_CODE > < / CLOSED_CODE >
    < LAST_ACCEPT_DATE > 11 May 2009 00:00:00 < / LAST_ACCEPT_DATE >
    < ENCUMBERED_FLAG > N < / ENCUMBERED_FLAG >
    < FIRM_STATUS_LOOKUP_CODE > N < / FIRM_STATUS_LOOKUP_CODE >
    < LAST_UPDATE_DATE > 30 April 2009 13:53:11 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < LAST_UPDATE_LOGIN > 1251236 < / LAST_UPDATE_LOGIN >
    < CREATION_DATE > 30 April 2009 13:52:27 < / CREATION_DATE >
    < > 3349 CREATED_BY < / CREATED_BY >
    < QUANTITY_RECEIVED > 0 < / QUANTITY_RECEIVED >
    < QUANTITY_ACCEPTED > 0 < / QUANTITY_ACCEPTED >
    < QUANTITY_REJECTED > 0 < / QUANTITY_REJECTED >
    < QUANTITY_BILLED > 0 < / QUANTITY_BILLED >
    Unit of < UNIT_MEAS_LOOKUP_CODE > < / UNIT_MEAS_LOOKUP_CODE >
    < TAX_USER_OVERRIDE_FLAG > N < / TAX_USER_OVERRIDE_FLAG >
    < MATCH_OPTION > P < / MATCH_OPTION >
    < CALCULATE_TAX_FLAG > Y < / CALCULATE_TAX_FLAG >
    < NOTE_TO_RECEIVER > NOT for RECEIVER in shipme < / NOTE_TO_RECEIVER >
    < AMOUNT > 1 000,00 < / AMOUNT >
    < SHIP_TO_LOCATION_ID > 88 < / SHIP_TO_LOCATION_ID >
    < SHIP_TO_LOCATION_NAME > US HDQTRS < / SHIP_TO_LOCATION_NAME >
    < SHIP_TO_ADDRESS_LINE1 > JFK 123 RD < / SHIP_TO_ADDRESS_LINE1 >
    Broadway, WA 53411 < SHIP_TO_ADDRESS_INFO > < / SHIP_TO_ADDRESS_INFO >
    the < SHIP_TO_COUNTRY > United States < / SHIP_TO_COUNTRY >
    < NEED_BY_DATE > 7 May 2009 00:00:00 < / NEED_BY_DATE >
    < PROMISED_DATE > 6 May 2009 00:00:00 < / PROMISED_DATE >
    < LINE_LOC_SHORT_TEXT >
    < / LINE_LOC_SHORT_TEXT >
    < DISTRIBUTION >
    < DISTRIBUTIONS_ROW >
    STANDARD < DISTRIBUTION_TYPE > < / DISTRIBUTION_TYPE >
    < ACCRUE_ON_RECEIPT_FLAG > N < / ACCRUE_ON_RECEIPT_FLAG >
    < ORG_ID > 29 < / ORG_ID >
    COSTS of < DESTINATION_TYPE_CODE > < / DESTINATION_TYPE_CODE >
    < DESTINATION_ORGANIZATION_ID > 208 < / DESTINATION_ORGANIZATION_ID >
    < ACCRUAL_ACCOUNT_ID > 1037 < / ACCRUAL_ACCOUNT_ID >
    < VARIANCE_ACCOUNT_ID > 3908 < / VARIANCE_ACCOUNT_ID >
    < PREVENT_ENCUMBRANCE_FLAG > N < / PREVENT_ENCUMBRANCE_FLAG >
    < PO_DISTRIBUTION_ID > 55248 < / PO_DISTRIBUTION_ID >
    < LAST_UPDATE_DATE > 30 April 2009 13:53:11 < / LAST_UPDATE_DATE >
    < LAST_UPDATED_BY > 3349 < / LAST_UPDATED_BY >
    < PO_HEADER_ID > 27162 < / PO_HEADER_ID >
    < PO_LINE_ID > 54015 < / PO_LINE_ID >
    < LINE_LOCATION_ID > 53698 < / LINE_LOCATION_ID >
    < SET_OF_BOOKS_ID > 25 < / SET_OF_BOOKS_ID >
    < CODE_COMBINATION_ID > 3908 < / CODE_COMBINATION_ID >
    < QUANTITY_ORDERED > 1 < / QUANTITY_ORDERED >
    < LAST_UPDATE_LOGIN > 1251236 < / LAST_UPDATE_LOGIN >
    < CREATION_DATE > 30 April 2009 13:53:11 < / CREATION_DATE >
    < > 3349 CREATED_BY < / CREATED_BY >
    < QUANTITY_DELIVERED > 0 < / QUANTITY_DELIVERED >
    < QUANTITY_BILLED > 0 < / QUANTITY_BILLED >
    < QUANTITY_CANCELLED > 0 < / QUANTITY_CANCELLED >
    < DELIVER_TO_LOCATION_ID > 89 < / DELIVER_TO_LOCATION_ID >
    < DELIVER_TO_PERSON_ID > 1308 < / DELIVER_TO_PERSON_ID >
    < RATE_DATE > 29 April 2009 00:00:00 < / RATE_DATE >
    < ENCUMBERED_FLAG > N < / ENCUMBERED_FLAG >
    < RECOVERY_RATE > 0.00 < / RECOVERY_RATE >
    < TAX_RECOVERY_OVERRIDE_FLAG > N < / TAX_RECOVERY_OVERRIDE_FLAG >
    COSTS of < DESTINATION_CONTEXT > < / DESTINATION_CONTEXT >
    < DISTRIBUTION_NUM > 1 < / DISTRIBUTION_NUM >
    < CHARGE_ACCOUNT > 01-3001-7050-000-000 < / CHARGE_ACCOUNT >
    < FULL_NAME > Green, Jan < / FULL_NAME >
    [email protected] < EMAIL_ADDRESS > < / EMAIL_ADDRESS >
    Jan < REQUESTER_DELIVER_FIRST_NAME > < / REQUESTER_DELIVER_FIRST_NAME >
    Green of < REQUESTER_DELIVER_LAST_NAME > < / REQUESTER_DELIVER_LAST_NAME >
    < / DISTRIBUTIONS_ROW >
    < / DISTRIBUTION >
    < / LINE_LOCATIONS_ROW >
    < / LINE_LOCATIONS >
    < / LINES_ROW >
    < / LINES >
    * < LINE_ATTACHMENTS > *.
    * < long text TEXT input > which is 2nd note. < / TEXT > *.
    * < ID > < /ID > 53995 *.
    * < TEXT > see this 5th long atta < / TEXT > *.
    * < ID > < /ID > 53995 *.
    * < TEXT > text 1 < / TEXT > *.
    * < ID > < /ID > 54015 *.
    * < TEXT > text 2 < / TEXT > *.
    * < ID > < /ID > 54015 *.
    * < / LINE_ATTACHMENTS > *.
    < ADDRESS_DETAILS >
    < ADDRESS_DETAILS_ROW >
    < > 88 location_id < / location_id >
    < ADDRESS_STYLE > US_GLB < / ADDRESS_STYLE >
    < ADDR_LABEL_1 > address line 1 < / ADDR_LABEL_1 >
    < ADDR_LABEL_2 > address line2 < / ADDR_LABEL_2 >
    < ADDR_LABEL_3 > address Line3 < / ADDR_LABEL_3 >
    City of < ADDR_LABEL_4 > < / ADDR_LABEL_4 >
    County of < ADDR_LABEL_5 > < / ADDR_LABEL_5 >
    State of < ADDR_LABEL_6 > < / ADDR_LABEL_6 >
    Code postal < ADDR_LABEL_7 > < / ADDR_LABEL_7 >
    Country of < ADDR_LABEL_8 > < / ADDR_LABEL_8 >
    Phone < ADDR_LABEL_9 > < / ADDR_LABEL_9 >
    Fax < ADDR_LABEL_10 > < / ADDR_LABEL_10 >
    Replacement of sales tax < ADDR_LABEL_11 > < / ADDR_LABEL_11 >
    < ADDR_LABEL_12 > Inside City Limits < / ADDR_LABEL_12 >
    < ADDR_DATA_1 > JFK 123 RD < / ADDR_DATA_1 >
    Broadway < ADDR_DATA_4 > < / ADDR_DATA_4 >
    WA < ADDR_DATA_6 > < / ADDR_DATA_6 >
    < ADDR_DATA_7 > 33444 < / ADDR_DATA_7 >
    < ADDR_DATA_8 > U.S. < / ADDR_DATA_8 >
    < ADDR_DATA_9 > 322-588-4534 < / ADDR_DATA_9 >
    < / ADDRESS_DETAILS_ROW >
    < / ADDRESS_DETAILS >
    < / PO_DATA >
    
      
    
     
    
    
    
    
      
    
    
    
    = 
    
    
    
    

    I get output

    1 15-MAY-2009 00:00:00 5,000.00
    test po
    test for short attachement
    4th attachment
    2 07-MAY-2009 00:00:00 1,000.00
    TEST PO
    short text 1
    short text 2
    Line Number 1
    long text attachment which is 2nd note.
    53995= long text attachment which is 2nd note.
    53995= see this 5th long atta
    Line Number 2
    long text 1
    54015= long text 1
    54015= long text 2
    

    Hope this helps

    Let me know if it helps ;)

  • Possibility to use the Enum control as an index for the loop entry For

    Hello world

    I'm curious to know if an ENUM type could be an index entry for a loop For (in fact, I tried in labview but it did NOT work).

    I use Enum to my two configurations (only two elements), but sometimes I need to run the two together.

    I wonder if it has a good structure to manage it, or simply replace ENUM with table.

    Thank you

    -Kunsheng

    Here is an example of use of the nodes of property:

  • Cannot be used for the loop variable 'i' twice?

    Something weird is happening with a dialog box that I'm doing that dynamically creates buttons based on the number of objects in a table that I pass in a function. I say weird, but it's obviously me not understanding how the variables in a loop. See below:

    mrp = {
        one: [new File("/Users/constantincerdan/Creative%20Cloud%20Files/Templater/Iconbuttons/bagspouches.png"), "One"],
        two: [new File("file:///Users/constantincerdan/Creative%20Cloud%20Files/Templater/Iconbuttons/beauty.png"), "Two"],
        three: [new File("file:///Users/constantincerdan/Creative%20Cloud%20Files/Templater/Iconbuttons/bluepocketsquare.png"), "Three"]
    }
    
    function Dialog(dialogTitle, buttons) {
    
        var dlg = new Window("dialog", dialogTitle + " - OU");
        dlg.margins = [20, 15, 20, 17];
        dlg.buttonsGroup = dlg.add("group");
        dlg.buttonsGroup.orientation = "row";
        dlg.buttonsGroup.spacing = 15;
    
        for(var i = 0; i < buttons.length; i++){
            templaterButton = dlg.buttonsGroup.add("iconbutton", undefined, buttons[i][0])
            templaterButton.onClick = function(){
                open(buttons[i][0])      
                dlg.close()      
            }
            dlg.buttonsGroup.add("panel", [undefined, undefined, 0,120])
        }
        dlg.show()
    }
    Dialog("Test",[mrp.one, mrp.two, mrp.three])
    
    
    
    
    
    
    

    Execution of this poster dialog very well, and all the icon buttons have their own photos as they should (see photo below).

    This is what confuses me: line 16, he is able to use I on the buttons [i] [0] very well get every image and use it, but for some reason any when I also try to use the same thing to line 18 to try to open the real images for each button, I get the error "undefined is not an object" on this line. Change key [i] [0] to line 18 to the key [0] [0] opens the first image very well (on three keys), so I can't understand what I'm doing wrong here?

    Screen Shot 2016-02-04 at 22.44.44.png

    The problem is that the function that executes the dialog box is not a variable that I exist. It is a function that get-called on the fly. One thing you can do is to use 'this' in the service running, so it will point to the iconbutton that you clicked on, unfortunately there is no default property of this button that can point to the actual file, there is only the property "icon" but that only gives the name of the file and not its full path , but you can create a custom property that can point to the path to the file like this:

    MRP = {}

    a: [new file ("/Users/constantincerdan/Creative%20Cloud % 20Files/Templater/Iconbuttons/bagspouches program. PNG"),"One"],

    two: [new file ("file:///Users/constantincerdan/Creative%20Cloud%20Files/Templater/Iconbuttons/beaut y.png"), "Two"],

    three: [new file ("file:///Users/constantincerdan/Creative%20Cloud%20Files/Templater/Iconbuttons/bluep ocketsquare.png"), "Three"]

    }

    function {Dialog (dialogTitle, buttons)

    var DLG = new window ("dialog", dialogTitle + "- OR");

    DLG. Margins = [20, 15, 20, 17];

    dlg.buttonsGroup = dlg.add ('group');

    dlg.buttonsGroup.orientation = "row";

    dlg.buttonsGroup.spacing = 15;

    for (var i = 0; i)< buttons.length;="">

    templaterButton = dlg.buttonsGroup.add ("iconbutton", undefined, buttons [i] [0]);

    templaterButton.myFile buttons [i] [0] ;// = my custom property

    templaterButton.onClick = function() {}

    App.Open (this.) MyFile);

    Open (this.) MyFile); / / use the property of the selected object

    DLG. Close();

    }

    dlg.buttonsGroup.add ('panel', [undefined, undefined, 0,120])

    }

    DLG. Show()

    }

    Dialog box ("Test" [mrp.one, mrp.two, mrp.three])

  • onLoadInit in xml for the loop

    Hello

    I have a code that loads XML, which works very well (see below)

    I have a loop for and based on the content of the XML, swf are loaded move clips.

    When each of the sovereign funds have finished loading in I need to change the scale of clips, position etc.

    I need indroduce for code below a way to detect when each swf is loaded. I have done some research and I know that I need to integrate a loadInit function in the code. I've tried alsorts and watched a lot of code, but can't seem to get anything working.

    If anyone of you can poinbt me in the right direction that would be great.

    Stop();
    var y: XML = new XML();
    y.ignoreWhite = true;

    var page_cat_ids:Array = new Array();
    var page_cat_names:Array = new Array();

    y.onLoad = function() {}
    Category: Array, var = this.firstChild.childNodes;
    for (i = 0; i < category.length; i ++) {}
    page_cat_ids.push (class . attributes.cat_id);
    page_cat_names.push (category
    .) attributes.cat_name);

    duplicateMovieClip (_root.characterClipContainer.characterClip, "characterClip" + i, _root.characterClipContainer.getNextHighestDepth ());
    _root.characterClipContainer ["characterClip" + i] ._x = 100 * i;
    _root.characterClipContainer ["characterClip" + i].characterClipName.Text = page_cat_names ;
    _root.characterClipContainer ["characterClip" + i].characterClipImage.loadMovie ("..") / images/f lash/characters / "+ page_cat_names
    +".swf");"

    }
    };

    y.Load("..) ("/ xml/categories_page_1.xml");

    Ah yes. Sorted

    Thank you

  • for the loop and array

                     

    Can someone explain to me how becomes the array1 (1 X 2) added added table 2 (4 X 2); I didn't understand how indexing works here.

    Thank you

    Hi Vincent,.

    in the exit tunnel every 1 d table 1 × 2 will go to a 2D table ROW. As see you: the last values in table 1 are the last line of the table 2D...

    This is how works the autoindexing: scalars form a 1 d vectors table 1 d become lines of a 2D array, 2D table becomes a 3D table pages and so on... And vice versa for a tunnel of entry!

  • Code for the loop in AS3

    Hi there, new ActionScript in general, I have this code snippet I want again and again for always loop:

    Quote:
    If (controlID.text == "2") {}
    trace ("worked");
    } else {}
    trace ("failed");
    }
  • Save 1 array in a loop for the other run cycles.

    I have a function built into a N = 65 for the loop that pulls down real-time data in table.    On the first loop, a table for "calibration" is created that needs to be saved as a reference for measures in the next 64 executions.

    Anyone know what I need to do to save this first set of data, so I can continue to use it?   On the next run, the function extracts completely new data and replaces naturally.

    For the moment, I don't have a source VI to post (that works), sorry about that.   Will try get ot something tomorrow... but it will probably not work.

    To be a little more exactly...

  • Event inside the loop 'for' confusion

    Hi all

    I have an event inside a N = 2 for the loop, which generates an array of 2 elements (auto-index mode). The first value is a first event, the second of the second round. The events are the mouse clicks on a front panel with many buttons control.

    Am I able to access the i counter inside the front loop of 2 elements output table? He does not appear.

    Maybe I want just 2 events in the order I should put two copies of this event in a sequence of 2 image... but it creates the need to set up the event twice... a concern, because it contains many possible sources.

    Ive tried everything in loops, by the way I like a local variable, tunnels, shift... registers but I don't seem to be able to access I have during the loop.

    Can anyone suggest a method or a better structure/approach for this issue.

    In any case, it seems that the program is blocked waiting for the second round, so I can't do anything with the value anyway?

    I want to take action after the first test and before that I'm waiting for the second event.

    Thank you

    Carloman

    OK, you're much too complicated things dong.

    • Use a unique event for all low Boolean mice, then use the ctrlref of output event to detect only one. For Boolean values, you can use an array of Boolean instead of all these individual buttons.
    • Don't do the "table of cluster... unbundle" songs and dances. It's just ridiculous! 'array Index' is sufficient.
    • You need an event for the stop button.
    • The structure of your outdoor sequence has no purpose.
    • The coloring is registered with VI, no need to recolor with each race.
    • Do not reproduce any of this code. Your internal matter differs only in a constant of the diagram, it's everything that belongs inside the case. The "subset of table to replace" belongs to the outside.
    • Now, simply do the processing in a new event and ignore if the State isn't fair. Modify if needed.
  • For the direction of the loop

    I need a direction with the loop For

    I use a loop to sink and Array. Everything works except that I need to wait for the loop. Each time that the loop runs that I download an image. I want to wait for the image download continue to the next wait image and continue the loop. The problem is the loop runs too fast, I use a loop or once a loop and an 'IF '?

    I don't want to use a timer, because it can take more time to download an image then the timer.

    Can someone put me on the right track?

    Thank you

    You can't make a loop to wait.

    use the functions of two (or several) to call each other. who will form a loop and any function call may be delayed while you wait for an asynchronous event (such as a load of movieclip) to occur.

Maybe you are looking for

  • Satellite A100-847 - how to clean ventilation dust CPU?

    I have a problem with my Satellite A100-847, superheat often. I really na? don't know if I should go to the vent worms down or should I take the keyboard! The guarantee is not a problem, I na? t's it gone. My usual CPU temp is more then 80 deg. Can s

  • Bike Z Force SD card disappears several times

    128 GB SanDisk Extreme, works for a while, then finally the phone says I have no inserted sd card. Withdrawal, reboot, or just eject and winding makes it works for a little while yet once. Bad SD card? Or a bug with the phone or the operating system.

  • External memory not recognized

    Hello world I just want to clarify that I have read the previous posts on this and I'm still having a problem.  I just bought the "rocket" yesterday (07/04/09) Windows XP does not see my external memory chip.  I was back to the MTP to MSC.  While MSC

  • audio device crashes all the time

    I have a problem with my audio whenever I put or set up, she'll always accidents all playing games, listening to music or any other simple tasks that involve the use of audio and nuts. IM using a 32-bit win7 system.Here is my error event viewer: - -

  • Windows media player duplicate tracks

    all music library entries are duplicated. How to remove duplicate entries, deletion does not work, affects the remaining tracks game