for each loop works not

My instructions of tracing inside ma for each loop will not appear. Please someone check my code. I'm no errors in flex builder. When I debug all vars are holding data prober. Thank you very much


"essa tkinen" wrote in message
News:gr27rt$3SB$1@forums. Macromedia.com...
> Yes there are data there is a list of comma delimited keywords that are
> catagorys. the selectedCatArray holds to a list item. I want to
> returns true if the item is in this list

On the one hand, you will leave this function in the first round,
because you return the result inside the loop. Return immediately leave him
function. On the other hand, I am tempted to move on to something more like
this:

for (var i = 0; i)<_item.cats.length; i++)="">
iCat var = item.cats ;
do your business here
}

I had really bad luck to get for each to work the way I think that it
expected.

HTH;

Amy

Tags: Flex

Similar Questions

  • write 1 d digital table in a binary file and start a new line or insert a separator for each loop writing file

    Hello:

    I'm fighting with digital table of 1 d writeing in a binary file and start a new line or insert a separator for each loop writing file. So for each loop, it runs, LABVIEW code will collect a table 1 d with 253 pieces of a spectrometer. When I write these tables in the binay file and the following stack just after the previous table (I used MATLAB read binary file). However whenever if there is missing data point, the entire table is shifted. So I would save that table 1-d to N - D array and N is how many times the loop executes.

    I'm not very familiar with how write binary IO files works? Can anyone help figure this? I tried to use the file position, but this feature is only for writing string to Bodet. But I really want to write 1 d digital table in N - D array. How can I do that.

    Thanks in advance

    lawsberry_pi wrote:

    So, how can I not do the addition of a length at the beginning of each entry? Is it possible to do?

    On top of the binary file write is a Boolean entry called ' Prepend/chain on size table (T) '.  It is default to TRUE.  Set it to false.

    Also, be aware that Matlab like Little Endian in LabVIEW by default Big Endian.  If you probably set your "endianness" on writing binary file as well.

  • For each loop - Urgent

    Hello

    I try to use for each loop:

    FE Agreement_No
    Customer
    0.00
    0.00 <? end foreach? >

    It does not work. The FE code should be grouped?

    Can anyone help?

    Thank you

    Can you send me the files?

  • TestStand blocks by "for each" loop

    TestStand crashes from time to time for unknown reasons. We believe that 'foreach' loops could be the reason. By replacing the "for each" loop with a loop and iterate using the index, the problem is solved.

    Is this a known problem in Teststand? Is it possible that this is resolved in Teststand 4.1 (we use 4.0.1)?

    Kind regards

    Jeroen Coulembier

    This looks exactly like a previous problem (98902) report, which has been fixed in 4.1.

  • If loop works not properly

    I have 8 TextBox on stage that the user fills out.  When you are finished, the user will hit the Enter key and see if the answers are correct and her score.

    The problem is that each round of the game the if(event.keyCode == Keyboard.ENTER) is fired once for each round.  This 1st round, if loop executes only once, on the 2nd Tower it works twice, on three rounds he turns three times, etc., which means that the users score is messed up.  Why is that happening and how can I solve this problem?

    this.addEventListener (KeyboardEvent.KEY_DOWN, keyPressed);

    function keyPressed(event:KeyboardEvent):void {}
    if(Event.keycode == Keyboard.Enter) {}
    trace ("Entering");
    var myInput:String = inputs.symbol1Box.txt.text + inputs.subscript1Box.txt.text + entries. symbol2Box.txt.text + inputs.subscript2Box.txt.text + inputs.symbol3Box.txt.text + inputs.subscript3Box.txt.text + inputs.symbol4Box.txt.text + inputs.subscript4Box.txt.text;
    if(MyInput == mySymbol) {}
    inputs.addChild (myCheck1);
    myCheck1.x = inputs.symbol4Box.x + 50;
    myCheck1.y = inputs.symbol4Box.y - 15;
    Note ++;
    scoreBox.text = String (score);
    check1On = true;
    }
    if(inputs.chargeBox.txt.Text == myRoll.Valence) {}
    inputs.addChild (myCheck2);
    myCheck2.x = inputs.chargeBox.x + 15;
    myCheck2.y = inputs.chargeBox.y - 15;
    Note ++;
    scoreBox.text = String (score);
    check2On = true;
    }
    If (Tower < = numRounds) {}
    addChild (myContinueButton);
    myContinueButton.x = 275;
    myContinueButton.y = 300;
    myContinueButton.addEventListener (MouseEvent.CLICK, rollDice);
    } else {}
    addChild (myEndButton);
    myEndButton.x = 275;
    myEndButton.y = 285;
    myEndButton.addEventListener (MouseEvent.CLICK, end part);
    }
    } / / end of if (event.keyCode == Keyboard.ENTER)

    } / / function keyPressed ends

    } / / end function rollDice

    Hello

    You probably add the listener multiple times (one per turn), so the listener function is called multiple times. The best way to solve this problem is to remove the method addEventListener of repetitive code and place it in your application initialization sequence or somewhere that you are sure that is run once.

    Rui

  • For Each loop

    Hello

    I have a model with a table and entered in certain fields of the DataSet. If anyone can help with the syntax foreach loop. The client code is the field that records must be split and grouped by. I am currently using the following syntax

    <? for-each - group:current-group(); / CUST_ID? >-beginning of the first added field

    <? end for each group -? >-added end of the last field

    It currently returns only one line and that there should be a lot more lines per customer.

    Can anyone help?

    Thank you

    Hello

    try using this syntax

    (Before and after the table)

    and this syntax according to the table

    (In the table)
    use syntax at the start of the first field of the suite

    and after the last field in the table.

  • To create a piece for each user or not?

    My application requires that participants comments do need to connect. They only enter names. As the meeting is not scheduled. It is on the promenade in the base where host awaits the guests. In my case, I have hundreds, then thousands of hosts. For each host, should I create a new room and return to only that user? Is that how the supposed to rooms used or there is no other data structure such as the groups that I can use? Are there limits to how much room an application can create?

    If there are different hosts with no communication and that you want to host meetings at the same time, you must use different parts. However, if there is only one meeting at a time, you can use the same room.

    Also, several rooms is recommended if there are many users per session.

    Thank you

    Hironmay Basu

  • for each loop to print the values in the same line?


    Hi guys,.

    For our customer, I create a RTF file.

    In one line, I use this:

    Internal req. Ref #: <? for-each: G_2? > <? SEGMENT1? > <? end foreach? >

    Now when I run this report this part of line shows the values in separate lines

    Output:

    -----------------------------------------------

    Inside Ref No. DDE:

      226

    230

    ------------------------------------------------

    How can I make it back in the same line. Like this and separated by commas

    -----------------------------------------------

    Internal req. Ref #: 226 230

    ------------------------------------------------

    You can use inline grouping, please take a look at these posts:

    https://blogs.Oracle.com/XmlPublisher/entry/inline_grouping

    Re: Using conditional output

    Re: Display data from a list in a single field with values separated by commas

  • Search for nightly bar works not with StartPage.

    I am a user every night that upgrades every day. A few days after the upgrade I ended up having to install a third-party application which unfortunately also installed a few research of Delta and the spam toolbar without me knowing. I've removed all the unwanted Delta I could find, but later discovered that when doing a search for home page of the search bar every night he now just would take me to the homepage of Startpage.com instead of performing the search and returns the results she had always done before. I suspect that the search for Startpage URL has changed by upgrading every night or the junk of Delta, or something in this sense. I tried to reset every night at his State by default as well as to remove and reinstall the Startpage search engine but no luck. Looked everywhere but could not find where the Startpage search URL is saved so I can go back to normal behavior. Other search engines work as usual from the search bar every night. Any ideas?

    Startpage search engine works normally again after a few more nightly updates.

    Detective Conan.

  • Check of fingerprints for HP Protecttools works not

    Hi all

    I recently installed Windows 7 and everything worked fine. I had a local administrator account and started playing with HP Protecttools. I registered fingerprints enabled pre-boot security (so he asked for the password and fingerprint before you start) and it worked fine.

    To download a software from my University, however, I had to add a domain to my University account. So, I made a new account, changed the field and began to install the software that I needed.

    Because I didn't want to use two accounts, I decided that I would use only the account with the domain name of my University. However, when I tried to record fingerprints for the purpose of this account, I noticed that I could record only fingerprints that were not recorded on the account on the other.

    Therefore, I tried to delete the account of HP Protecttools, which did not work. In the BIOS, I have reset factory default security settings, so it would be redefined and all fingerprint TPM and it deleted the user who I had tried to remove.

    So I tried to register for footprints to my checking account, but it did not work. There was the following error message: "the identification system fingerprint mode of strengthening security has not yet initialized. Contact your system administrator to initialize the fingerprinting system before performing this operation. ». After that, it gives another error message saying: "the system could not preform the requested operation." Among the areas of security could not process the request. ».

    So, how can I fix? I want to just use prebootsecurity and save the fingerprints.

    Already solved myself. I had to record fingerprints while the network against myself, or use VPN.

  • upgrade of the safety components for media player works not.

    To http://drmlicense.one.microsoft.com/Indivsite/en/indivit.asp to try to upgrade and received the following error message: "Windows Media Player has encountered a problem trying to read the file.  It makes no sense to me because it is a security update and not an audio file.  Overdrive program requires this DRM for Windows Media Player update in order to play the material borrowed under copyright of the library.  Please notify

    I was also a problem completing the upgrade.  See http://help.overdrive.com/article/0027/How-to-run-the-Windows-Media-Player-Security-Upgrade.  I realized that in Internet Explorer, I had to change my settings to run as administrator and within 5 seconds, my upgrade was complete!

  • Need a fix for W7 Screensaver works not when Mrs. mouse installed wireless.

    I had a new HP Pavilion G5850uk (5 days) Windows 7 Home Premium. The screen saver does not work when I have a Microsoft Wireless Optical Mouse 3000 installed. If I unplug the transmitter wireless, works of screensaver perfectly, but obviously the mouse does not work!

    I found resolution/workaround on the Microsoft support site (http://support.microsoft.com/kb/913405) but I have no offending programs installed and Windows Update does not update. The download of the update of the original page has been removed.

    Any other ideas?

    Thank you

    OK, I cracked. Two things have conspired together. First of all, I uninstalled the wireless mouse, and then reinserted it. This caused a new Intellimouse software download. Then I discovered that the driver software of my phone Skype UP90 prevented also the screen saver to run. Uninstalled it and it all works.

    Now just find a new Skype USB phone compatible with Windows 7.

  • My &amp; quot; for &amp; quot; loop is not supposed!...

    Hello - my problem is the following...

    Here is a block of code. There are two tracks inside. My onstage are three MC named 'ch1_mc', 'ch2_mc' and 'ch3_mc '...

    .. .the first stroke appears as soon as you test the animation, and it traces '1' (since it is this 'I'). Now, the trace of the second (which has just ONE line that separates the two traces) returns to a '4' when I rollover my 'ch1_mc' MC. How 'I' came from 1-4 in this line? In fact, how it get to 4, based on this code? ...

    I'm very confused, and this is stuff messing around online toward the end, I need to load the SWF "01/titlePage.swf", but instead it tries to load ' 04/titlePage.swf"(which doesn't even exist!)...

    Thanks in advance for any help that can be offered...

    ********************************************************************************

    I don't know where this second track is picking up at i = 38, but it's not going to be the same as the i used to set the rollover. If you want to _root ["ch" + i + "_mc"] to know that it is about i, you set something like

  • Solution for microphone that works not under Ubuntu 11.10

    After struggling with an inactive microfone after upgrade to Ubuntu 11.10, I found the solution on https://wiki.archlinux.org/index.php/Skype:

    Turn to PulseAudio autospawn off, normally: $ echo "autospawn = no" > ~/.pulse/client.conf
    Kill PulseAudio: $ killall pulseaudio
    Stop and restart Skype

    After this procedure, I could choose my microfone in the audio settings and it works fine now.

    I hope this helps!

    I could get my mic works on my laptop HP G7000 by simply making adjustments to the levels in alsamixer. Just open up Terminal and type "alsamixer" (without the quotes) and use the arrow keys on your keyboard to make adjustments to the mic settings.

  • 3 fields of research need to return several words for each field results NOT all fields

    I have three boxes of research here

    "" < form id = "Jobtitle" name = "Jobtitle" method = "get" action = "... / current - positions.php" >

    < p >

    < input name = "tk_job_title" type = "text" class = "textfeilds" value = "Job title" size = "32" / >

    < label for = 'Place' > < / label >

    < input name = "tk_job_location" type = "text" value = "Location" size = "32" / >

    < label for = "Salary" > < / label >

    < input name = "tk_job_salary" type = "text" class = "textfeilds" value = "Salary" size = "32" / >

    < /p >

    < p align = "right" >

    "" < input type = "image" src = "... /images/jobsearch-Button.png" width = "120" height = "17" border = '0' value = 'Submit' alt = 'submit' well = "#Map" / >

    < name of the map 'Map' id = 'Card' = >

    < area shape = "rect" coords = "1,0,67,16" href = "#" / >

    < / map >

    < /p >

    < / make >

    I built the page of results below

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $maxRows_Recordset1 = 5;

    $pageNum_Recordset1 = 0;

    If (isset($_GET['pageNum_Recordset1'])) {}

    $pageNum_Recordset1 = $_GET ['pageNum_Recordset1'];

    }

    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

    $var_tk_job_title_Recordset1 = '% ';

    If (isset($_GET["tk_job_title"])) {}

    $var_tk_job_title_Recordset1 = $_GET ['tk_job_title'];

    }

    $var_tk_job_location_Recordset1 = '% ';

    If (isset($_GET["tk_job_location"])) {}

    $var_tk_job_location_Recordset1 = $_GET ['tk_job_location'];

    }

    $var_tk_job_salary_Recordset1 = '% ';

    If (isset($_GET["tk_job_salary"])) {}

    $var_tk_job_salary_Recordset1 = $_GET ['tk_job_salary'];

    }

    $var_tk_job_salary_Recordset1 = '% ';

    If (isset($_GET["tk_job_salary"])) {}

    $var_tk_job_salary_Recordset1 = $_GET ['tk_job_desc'];

    }

    @mysql_select_db ($database_hostprop, $hostprop);

    $query_Recordset1 = sprintf ("SELECT tk_job_title, tk_job_location, tk_job_salary, LEFT(tk_job_desc,200) as truncated_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s tk_job_location GOLD AS tk_job_salary GOLD AS GOLD tk_job_desc at %s %s %s", GetSQLValueString ($var_tk_job_title_Recordset1, "text"), GetSQLValueString ($var_tk_job_location_Recordset1 'text') ") (, GetSQLValueString ($var_tk_job_salary_Recordset1, "text"), GetSQLValueString ($var_tk_job_desc_Recordset1, "text"));

    $query_limit_Recordset1 = sprintf ("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);

    $Recordset1 = mysql_query ($query_limit_Recordset1, $hostprop) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    If (isset($_GET['totalRows_Recordset1'])) {}

    $totalRows_Recordset1 = $_GET ['totalRows_Recordset1'];

    } else {}

    $all_Recordset1 = mysql_query ($query_Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($all_Recordset1);

    }

    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;

    ? >

    and the results here

    < table width = "655" border = "0" cellspacing = "5" cellpadding = "0" >

    < b >

    < td colspan = "2" class = "Titlegreen" > <? PHP echo $row_Recordset1 ["tk_job_title"];? > < table >

    < /tr >

    < b >

    < td colspan = "2" class = "textblack" > <? PHP echo $row_Recordset1 ["truncated_job_desc"];? >.. .read more < table >

    < /tr >

    < b >

    < td width = "250" > < table >

    < td width = "405" > < div align = "right" > < span class = "pos_salary" > <? PHP echo $row_Recordset1 ["tk_job_salary"];? > < / span > < span class = "pos_location" > / <? PHP echo $row_Recordset1 ["tk_job_location"];? > < / span > < / div > < table >

    < /tr >

    < /table >

    Now if I'm looking in the tk_job_title for the safety it will display results for safety even though I have the security guard in the comic book.

    or if I search Sydney it will return only those results although I Sydney Australia in the DB

    can anyone help?

    Thanks in advance

    Put anywhere after the code that you posted. We consider the SQL string sent to the db.

Maybe you are looking for