Problem to display items in a table

I have a list of delimited by commas, called "listtest.

I put each item in the list in a table called 'params '.
Now I use a loop 'for' for each element of the array.
I tried the code below, but I don't get the items.

See code below:

var params: Array = listtest.split(",");

for (var i: int = 0; i < params.length; i ++) {}
Alert.Show (new String (params, ));
Alert.Show (new String(params
.displayName));
}

Can someone tell me how to get the items in the Alertbox.

THX

I had myself. I fink I slept all by writing code.

It's so simple!

Here it is:

for (var i: int = 0; i)< params.length;="">
Alert.Show (new String (params, ));
}

Rgds,
Yaya

Tags: Flex

Similar Questions

  • How to convert a table 1 d of cluster of 5 items in a table of numbers 2D? (a graph historical data)

    Hello

    in my vi, I have an array with 5 slots displaying measurement data.

    The user must be able to record all the data in the history of the card at any time. (for example the user looks at the picture and something happens, then it based on a 'save' - button)

    I know that I can read the data in the history with a property node. This isn't the problem. The problem is, how to deal with the data? The type of history data is a table 1 d of cluster of 5 elements.

    I convert these data somehow in a 2 D-table of numbers or strings, so that I can easily save it to a text file.

    How to convert a table 1 d of cluster of 5 items in a table of numbers 2D?

    I use LabVIEW 7.1

    Johannes

    Hallo Johannes,

    the photo shows the trivial way:

  • How Split items in a table

    Hi guys

    I have signal consisting of a few numbers... .they are declared separately to Labview as x, y, z.

    So I need a way to group 3 these items in a table (for example) as x refes to a data point, number there is tension and z is the current.

    I would then separate the 'picture' in a XY Chart for I draw vs V.

    Any suggestions?

    Rgards

    B

    Hi Barrys,

    I'm not very clear on your doubts. I guess that if you can make a chart of your x y z-values, then you can yourself. See the attached example. I made a picture of a set of values. Instead of the constant I've used, you can read directly in your worksheet. I hope this helps.

    Kind regards
    Amine31

    (Bravo to give good answers, mark it as a Solution If your problem is resolved)

  • Display data in a table after the analog acquisition

    Hello

    I am almost 12 analog channels data acquisition using a single task at the frequency of 100 Hz and try to display it in a table. I've renamed all channels according to their functions and also assigned a number of material. But the problem I encounter is that am not able to find out what data comes from a single channel. The graph should look like similar to MAX table with an additional column to display the number of material as well, and I am attaching the picture of it. From now on, I tried to show all channels, number of material and the values acquired successively in three separate columns. Although it seems very well, I would like to know if there is an option to find out where a particular value channel was acquired in a task with a number of channels?

    The shift register for the while loop where you collect your data should be a 2D array.  Then each colum is assigned to a channel.

  • E/s files does not save the items in the table

    I can't save the items in the table. If I quit the program and restart it, the array starts at 0 again. I want it from the value at which it stopped.

    Is this a flaw in the Subvi "Timer A1"?

    Thanks for the help.

    mhaque

    Your feedback nodes are defined overall boot on the first call, as evidenced by the glyphs.  If you are stop and start your program, must be configured to initialize worldwide on the compilation or the load, simply right-click and change the setting.  This should give you the behavior you're looking for, but does not exclude the intrinsic problems with the code.

  • Universal search does NOT display items

    I created my own theme BB theme Studio 6. There is a problem: when I use the universal search, I type in an item, but I do not see the display of the results. I know they are there, because when I scrolling (using trackpad) and click the BB (menu button), I can see the option "go to...". [the element highlight] ", and when I move it once again, this changes.

    In short, research works, but it does not display items. What can I do?

    Edit,

    Change the color of the CAP and you'll be good to go

  • EA 4.1 display of version information in navigator slows down displaying the list of tables

    Hello

    I use DM with SVN version control.

    The table browser now displays the icon of overlay on the tables. Nice!

    The version number/log-in / user is not necessary. Maybe an option to display this information.

    In any case the most important question is: now, it takes too long to display the list of tables in the browser.

    Joop

    Hi Joop,

    The version number/log-in / user is not necessary. Maybe an option to display this information.

    Yes, there is an option - "preferences > Versioning > Subversion > General '-' use the navigator overlay State labels.

    The performance - we look at this problem.

    Philippe

  • Having a problem with the addition of dynamic table in Dreamweaver CS6 with MySQL

    Hello, I am new get here. So my question is this:

    I have sccesfully has created a MySQL user table and a register and Login Page and the Page count of the user can update his information etc etc. But my problem is this, I created another table in MySQL, which the user can add his cars (brand, model and year of manufacture) and I've linked this table to the table user with a foreign key using user name as primary key for table use and as a foreign key to the table of cars. My question is how to display the data for each user so that each user will be able to see its records in this table. Every help is appreciated.

    Thank you for your time and help!

    I think it works, simply change to the highlighted

    $colname_CarUsers = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_CarUsers = [["" UserID""]]; $row_User

    }

    @mysql_select_db ($database_MyCOnnection, $MyCOnnection);

    $query_CarUsers = sprintf ("" SELECT * FROM cars WHERE UserID = %s ORDER BY ASC CarBrand ", GetSQLValueString ($colname_CarUsers,"int")");

    $query_limit_CarUsers = sprintf ("%s LIMIT %d, %d", $query_CarUsers, $startRow_CarUsers, $maxRows_CarUsers);

    $CarUsers = mysql_query ($query_limit_CarUsers, $MyCOnnection) or die (mysql_error ());

    $row_CarUsers = mysql_fetch_assoc ($CarUsers);

  • I have problems to display the Korean characters.

    My Mozilla will display the Korean characters until last week, but now it displays them in the form of the squares with a very small number. I tried all sorts of encodings, but they are not always shown. I am sure that my computers has the support of the East for languages, it properly displays files Korean but in all my browsers (Mozilla, Explorer and Chrome), suddenly, Korean characters are displayed as squares.

    I will be grateful to those who can solve my problem, ' cuz display of Korean language is really important to me.

    I have Mozilla 20 Beta.

    The sounds that you have a problem with the font that is used to display Korean characters if this is the case in all browsers.

    You may need to reinstall this font.

    Other East Asian as the Chinese and Japanese languages do still work?

  • How can I determine which item in a table was just clicked on?

    I have a table set in place on my front. When user right click on an item in this table, I would like to be able choose among 3 different options. I have the shortcut menu works, but I need to know what element of the array of the user in a click with the right button to determine what values to change. How can I get the index of the item?

    Thanks for any help!

    https://decibel.NI.com/content/docs/doc-6406

  • How can I read items in four tables and store them in variables?

    Greetings,

    I have 4 tables which I read to control an autonomous robot vehicle as instructions.

    I must be able to read the first elements of each table and store in separate variables 4 (direction, speed, angle, distance). Wait until the first statement has been executed. Then I move on to the second elements of each array. I'll repeat this until I went through all the elements. I am struggling to figure out how to do this?

    Please note:

    -The number of items in the tables is always the same, although the number of items varies as can be less instructions or more.

    For example, a full trial takes 1st element of table 1, table 2, table 3 and table 4 and it builds something like: forward, 10, 20, to the left. This will then be the robot moving forward at a speed of 10 over a distance of 20 and then turn left. Once this done then it contains the elements 2 and so on.

    Please find attached my VI that reads a text file and creates 4 berries.

    Thank you.

    stanm13 wrote: Unfortunately, I don't think you understood my question.

    Then, I would say a) you don't understand the answer or b) you explain well enough.

    To make each element of an array, using a loop FOR with autoindexing entered is the way to go.

  • my computer recently crashed and when I tried to use photoshop, then I got the message: - message - problem with display driver, temporarily disabled the improvements. Does that mean, they will return when the problem is solved?

    My computer recently crashed. A fixed it but! When I then tried to use photoshop I got the message: - message - problem with display driver, temporarily disabled the improvements. Does that mean, they will return when the problem is solved?

    Update or restore your graphics driver.

  • Miniature display items.

    What's the largest size file that will display items?

    See:

    https://helpx.Adobe.com/Photoshop-elements/KB/maximum-image-size-limits-Photoshop.html

    (it is indicated for 10 versions, but I think it's valid for newer versions).

  • Get random items, no repetitive table

    Hello!

    I'm doing a 20-question, multiple-choice quiz. Each question is chosen at random in a table, and whenever the user clicks on the right answer, another random question comes up. I was not able to find a way to make sure not to repeat issues already selected. I tried to push the selected items in a table, then using $.grep and an if statement to check if the other randomly chosen question is already in the new table or not, but I couldn't get that to work.

    My code in the Panel of compositionReady is:

    var arr is ["Symbol_1", 'Symbol_2', 'Symbol_3', 'Symbol_4', 'Symbol_5', 'Symbol_6', 'Symbol_7', 'Symbol_8', 'Symbol_9', 'Symbol_10', 'Symbol_11', 'Symbol_12', 'Symbol_13', 'Symbol_14', 'Symbol_15', 'Symbol_16', 'Symbol_17', 'Symbol_18', 'Symbol_19', 'Symbol_20'];.

    sym.setVariable ("arr", arr);

    arr.sort (Function () {return 0.5 - Math.random ()});

    arr. Length = 20;

    var c = Math.floor (Math.random () * 100) %arr.length;

    for (i = 0; i < 20; i ++) {}

    SYM.$(arr[i]). Hide();

    SYM.$(arr[ques]). Show();

    };

    and whenever you click on the right answer, I run this:

    sym.getComposition () .getStage ().$("try_again1").hide ();

    sym.getComposition () .getStage ().$("correct1").show ();

    sym.getComposition () .getStage ().getSymbol("correct1").play ();

    var arr = sym.getComposition () .getStage () .getVariable ("arr");

    var c = Math.floor (Math.random () * 100) %arr.length;

    for (i = 0; i < = 20; i ++) {}

    sym.getComposition () .getStage ().$(arr[i]).hide ();

    sym.getComposition () .getStage ().$(arr[ques]).show ();

    }

    An overview of this would be much appreciated!


    Hi, bettiesac212-

    Well, I took a quick glance to your project (including project files was very useful, which is said by the way).  So what happens, is that you have included my code snippet in the middle of all the other things happening in your file.  There are a lot of questions I had looking at your code, like:

    • What is 'e '?  Where did this come from?
    • Why did you an array.sort initially?
    • Why do you attribute arr.length?  It is a property of arr already, so there is no reason to assign this

    Anyway, I cleaned up the code a bit to my snippet in.  I left some of her "as an exercise to the student", to paraphrase some of my old books, but I hope the console log will show you that usedArr is now a random picture that you can save.  If you save a variable that has the index, (aka "what question am I on?"), then you can get where you are now, add one, save this variable and are looking for the next item in usedArr and know that it is properly randomized.

    For those who are looking for an answer, this is the code I ended up using:

    var usedArr = new Array();

    var currentIndex = 0;

    While (currentIndex< 20)="">

    var randNum is Math.floor ((Math.random () * 100)) % 20;.

    If (usedArr [randNum] == undefined) {}

    We can place an object!

    usedArr [randNum] = arr [currentIndex];

    currentIndex ++;

    }

    by do not increment the currentIndex, we force basically he draw again

    }

    for (i = 0; i< usedarr.length;="" i++)="">

    Console.log ("index usedArr" + i + ":" + usedArr [i]);

    }

    You can save your new table and just browse each time

    you say "next question."

    I think that's more or less what I posted in my previous answer.  Bettie, I'll send you a link to your project files via private message in a few minutes.

    Thank you

    -Elaine

  • Returns the unique items in a table

    I would like to know how to get combanations of any table without repetitions of the same elements in a different order.

    The table is made of properties of the object and could have a variable number of elements.

    In other words, if I have an array of 2 elements for example

    [a, b]

    I want to receive 3 new arrays of void

    (1) [a]

    (2) [b]

    (3) [a, b]

    I don't want to receive [b, a] as having the same elements as [a, b] only in a different order.

    Well, if there just 2 items in the table then it's pretty easy, but when there is more then I do not understand!

    An array of 4 elements for example

    [a, b, c and d]

    would need to produce a new table of the following tables 15 sub

    (1) [a]

    (2) [b]

    (3) [c]

    (4) [d]

    (5) [a, b]

    (6) [a, c]

    (7) [a, d]

    (8) [b, c]

    (9) [b, d]

    (10) [c, d]

    (11) [a, b, c]

    (12) [a, b, d]

    (13) [a, c and d]

    (14) [b, c and d]

    (15) [a, b, c and d]

    A table of 5 elements would give me overtime 24 tables and so forth.

    I tried many ways with diddlysquat results

    Slice, splice and all things nice!

    If someone of you could share this trade secret with me, I would appreciate it a lot.

    Trevor

    Nice challenge!

    We could try this:

    function arrayParts(/*arr*/a, r,i,j,t,s,p)
    // -------------------------------------
    // Note: a is supposed to contain unique items
    // [if necessary, apply a makeUnique routine first]
    {
        if(! (i = Math.pow(2,a.length)-1) ){ return null; }
        (r=[]).toString = function(){return this.join('\r');};
    
        while(i--)
            {
            r[i] = t = [];
            s = (1+i).toString(2);
            p = (j=s.length) - 1;
            while( j-- ) '1'==s[j] && t[t.length]=a[p-j];
            }
    
        // Reorder by length [if needed!]
        // ---
        r.sort( function(x,y){return x.length-y.length;} );
    
        return  r;
    }
    
    // Sample code
    // ---
    var arrTest = ['Blue','Red','Yellow','Green','Black'];
    alert( arrayParts(arrTest) );
    

    Really not optimized, but it was pretty fun to write ;-)

    @+

    Marc

Maybe you are looking for