Need help with a simple list of question numbers

I have an ArrayCollection, a collection of whose columns is a price: number. I want to get the price max() and min() in this column. I created a temporary table that contains just the price; It looks like this:

Temp = Array()

[0] = 13.95

[1] = 32,50

[2] = 23.45... etc.

When I try to pass the array to max() like that, Math.max (temp), I get an error on the table on the number of force.

The temp table contains the correct data. How can I activate it in a list of values that the methods Math.min () and max() will accept?

Any ideas? Thank you

Carlos

Math.max.Apply (null, temp);

Tags: Flex

Similar Questions

  • Need help with a simple basketball game.

    Hi im new here and I need help with what makes this simple basketball game.

    Im trying to recreate this this video game. I'm not sure if it uses as2 or as3

    If someone could help me make a game like this or point me to a link on how to do it would be greatly appreciated.

    AS2 is used in the video.  If you have other issues, please post in the forum AS1/AS2.

  • New to Adobe Flash, need help with a simple coding

    I'm new using Adobe Flash and need help. That means class static type?

    static text is entered in the authoring environment.  This is the text that will not change (that's why static) during execution.

    This is in contrast to the dynamic text, which is text that is assigned using actionscript and can change at any time actionscript runs.

  • Need help with the Simple Question of coding (substring or charAt())

    Hello

    I have what I believe to be a simple matter of coding I was hoping that someone could help answer. I know how to do a decent amount of things but I'm pretty new to Livecycle and trying to change one of our PDF files so that if a certain field has a number starting with number 6 a certain button will become visible. I already have a set of code which is to control the visibility of this button, but I wanted to add this clause. Can someone help me to do this?

    Here are the existing code:

    If ((QuestionsPage2.COIQuestions.COIYN.rawValue == "1" & &))

    QuestionsPage2.EmailButtons.NSFCheck.rawValue == '1') & &

    (QuestionsPage2.ManagerSignature.ManagerDate.rawValue! = null & &)

    QuestionsPage2.ManagerSignature.ManagerCheckBox.rawValue! = null & &

    QuestionsPage2.ManagerSignature.ManagerSignature.rawValue! (= null))

    {

    QuestionsPage2.PasswordSection.RiskPassword.presence = "visible";

    QuestionsPage2.PasswordSection.PurchUseOnly.presence = "visible";

    QuestionsPage2.PasswordSection.HRPassword.presence = "visible";

    QuestionsPage2.EmailButtons.EmailContractsAndRisk.presence = "visible";

    }

    I would like to add at the top to look at the specific area of the first character to see if it is a 6 or not. Here's what I tried to do, but it did not work.

    If ((QuestionsPage2.COIQuestions.COIYN.rawValue == "1" & &))

    QuestionsPage2.EmailButtons.NSFCheck.rawValue == '1' & &

    ContractInfo.AgreementDetails.Org.substring (0.1)! = '6' )

    The type of field, that I'm looking is a field "Digital field" 4 characters.

    Can someone help me fix my code to make it work?

    Thank you!!

    you don't need to make such a work autour, everything you did not notice, this is NumericField isn't a string is always a numeric (number)

    If you can use substring on a whole or decimal number... unless it's a chain... then use the toString() after the .rawValue like this

    ContractInfo.AgreementDetails.Org. rawValue.toString (). Substring (0.1)! = « 6 »

    It should work.

  • Need help with menus and lists

    Hi, first of all, im new here and im hoping to get help

    I have a school assignment to do with dreamweaver, where I need to build an e-book

    Specifically, Ive got a roll more images that I was planning to do a menu bar on

    I was told to use spry, but they help at all.

    I was hopeing that my reversal, buttons could be roles more and a list/menu appears, such as on many sites

    Like this one http://projectseven.com/tutorials/navigation/auto_hide/workpage.htm

    (with a black background which comes down from the roll over image)

    How would I go about this

    I don't have much experience with CSS aswell

    A tutorial or any help would be appreciated

    Thanks in advance

    Arron

    Get rid of the image swaps, they add nothing to your page and the code is horrible.

    Copy and paste your code top table in the page menu above the list.

    Copy and paste your low table code in the menu page below lists.

    Validate your code, it should work.

    Code Validation tools
    ------------------------------------
    HTML - http://validator.w3.org/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • New to LiveCycle.  Need help with drop-down lists.

    I just started playing with LiveCycle with PDF Forms.  One thing that I wonder if it is possible to do the link of the selections available in the drop-down lists.  For example, on a form with one question on this subject, I have 5 possible answers as the "ranking of your favorite in the order of most loved at least liked fruits".  Then I have a series of 5 drop down list with the first box containing boxes "Apple, pear, fishing, strawberry, grapes.  Is it possible to have someone to make a selection in the first box, their fruit in the list, and then the second box would have four options to choose?  Say if apple was their favorite, only, pear, fishing, strawberry and grape would be selection?  I tried to find an answer, but I'm afraid I don't know enough about the capabilities of LiveCycle, and/or how to work with scripts (I think that's what I see people using).  If someone could take the time to try to push myself through this, I would appreciate it, of course.

    Here's a form to date. I had to get help from a programmer friend, so it is a code evolved. I used a script object to reduce the volume of code.

    Take a look and let me know what you think.

    Paul

  • Need help with a simple regular expression replacement

    Hello everyone,

    He comes to the table that I have to work with.
    CREATE TABLE "TBL_ACCOMMODATION" ("ACCOMMODATION_ID" NUMBER, "HOTEL_NAME" VARCHAR2(100), "ADDRESS" VARCHAR2(200), "LOCATION" VARCHAR2(100), "PHONE" VARCHAR2(50), "EMAIL_ADDRESS" VARCHAR2(60), "CONTACT_PERSON" VARCHAR2(60), "STATUS" CHAR(1), "CREATED_BY" VARCHAR2(10), "CREATED_DATE" DATE, "MODIFIED_BY" VARCHAR2(10), "MODIFIED_DATE" DATE, "MOBILE" VARCHAR2(50))
    REM INSERTING into TBL_ACCOMMODATION
    Insert into TBL_ACCOMMODATION (ACCOMMODATION_ID,HOTEL_NAME,ADDRESS,LOCATION,PHONE,EMAIL_ADDRESS,CONTACT_PERSON,STATUS,CREATED_BY,CREATED_DATE,MODIFIED_BY,MODIFIED_DATE,MOBILE) values (147,'Testt','Auckalnd','Henderson','565756776','[email protected]','Jasmine','A',null,null,'JEEJJ',to_date('23/10/12','DD/MM/RR'),null);
    Insert into TBL_ACCOMMODATION (ACCOMMODATION_ID,HOTEL_NAME,ADDRESS,LOCATION,PHONE,EMAIL_ADDRESS,CONTACT_PERSON,STATUS,CREATED_BY,CREATED_DATE,MODIFIED_BY,MODIFIED_DATE,MOBILE) values (129,'Kirby Hotel','25A Aitken Street
    Wellington','Wellington','04 918 8513','[email protected]','Deahdoow Maharg','A',null,null,'LEAN',to_date('14/02/13','DD/MM/RR'),'027 356 4333');
    Insert into TBL_ACCOMMODATION (ACCOMMODATION_ID,HOTEL_NAME,ADDRESS,LOCATION,PHONE,EMAIL_ADDRESS,CONTACT_PERSON,STATUS,CREATED_BY,CREATED_DATE,MODIFIED_BY,MODIFIED_DATE,MOBILE) values (167,'Avenue ee','10 Wellington Street
    Wellington','Wellington','4444444','[email protected]','James','A',null,null,'LEAN',to_date('21/02/13','DD/MM/RR'),null);
    Insert into TBL_ACCOMMODATION (ACCOMMODATION_ID,HOTEL_NAME,ADDRESS,LOCATION,PHONE,EMAIL_ADDRESS,CONTACT_PERSON,STATUS,CREATED_BY,CREATED_DATE,MODIFIED_BY,MODIFIED_DATE,MOBILE) values (185,'Quadrant Hotel','10 Waterloo Quadrant,
     Auckland','Auckland','9555555','[email protected]','Quentin QQ','A',null,null,'LEAN',to_date('04/03/13','DD/MM/RR'),null);
    My select statement is
    SELECT acc.hotel_name || '(' || replace(replace(acc.address,chr(13),', '),',,',',') || ')'
    FROM TBL_ACCOMMODATION acc
      inner join ijs_seminar s ON acc.accommodation_id = s.accommodation_id 
    where s.seminar_id = :P27_SEMINAR_ID
    I have to use the function replace twice. One is to replace the Chr (13) a comma is second band a comma where there are two commas.

    I don't know much about regular expressions.
    If someone can show me a better way to handle this using the regular expression rather than a heavy means above.

    Thanks in advance
    Ann

    Hi, Ann.

    Ann586341 wrote:
    Hello everyone,

    He comes to the table that I have to work with.

    CREATE TABLE "TBL_ACCOMMODATION" ("ACCOMMODATION_ID" NUMBER, "HOTEL_NAME" VARCHAR2(100), "ADDRESS" VARCHAR2(200), "LOCATION" VARCHAR2(100), "PHONE" VARCHAR2(50), "EMAIL_ADDRESS" VARCHAR2(60), "CONTACT_PERSON" VARCHAR2(60), "STATUS" CHAR(1), "CREATED_BY" VARCHAR2(10), "CREATED_DATE" DATE, "MODIFIED_BY" VARCHAR2(10), "MODIFIED_DATE" DATE, "MOBILE" VARCHAR2(50))
    REM INSERTING into TBL_ACCOMMODATION
    Insert into TBL_ACCOMMODATION (ACCOMMODATION_ID,HOTEL_NAME,ADDRESS,LOCATION,PHONE,EMAIL_ADDRESS,CONTACT_PERSON,STATUS,CREATED_BY,CREATED_DATE,MODIFIED_BY,MODIFIED_DATE,MOBILE) values (147,'Testt','Auckalnd','Henderson','565756776','[email protected]','Jasmine','A',null,null,'JEEJJ',to_date('23/10/12','DD/MM/RR'),null);
    ...
    

    Thanks for posting the sample data. You post the results, but the validation of the existing query which I suppose, produced good results. I can't run this query, because it requires the ijs_seminar table and a connection variable that also has no post, but I can just comment on the join and the WHERE clause.

    Is this really the best set of sample data for this question? This problem involves Chr (13) and repeated commas, but I don't see any s CHR (13) or repeated commas in the sample data. In addition, it seems that there are a lot of columns that play no role in this issue and just to make things difficult to read.

    My select statement is

    SELECT acc.hotel_name || '(' || replace(replace(acc.address,chr(13),', '),',,',',') || ')'
    FROM TBL_ACCOMMODATION acc
    inner join ijs_seminar s ON acc.accommodation_id = s.accommodation_id
    where s.seminar_id = :P27_SEMINAR_ID
    

    I have to use the function replace twice. We need to replace the Chr (13) by a comma,.

    As posted, inside REPLACE replaces Chr (13) with a comma and a space which could be important if you then pick up consecutive commas.

    second is the band a comma where there are two commas.

    I don't know much about regular expressions.
    If someone can show me a better way to handle this using the regular expression rather than a heavy means above.

    Assuming you want to replace Chr (13) with just a comma, then an equivalent would be:

    SELECT    acc.hotel_name || '('
                      || REGEXP_REPLACE ( acc.address
                                          , '[,' || CHR (13) || ']{1,2}'
                                , ','
                                )
                    || ')'            AS h
    FROM        tbl_accommodation acc
    INNER JOIN  ijs_seminar       s   ON   acc.accommodation_id = s.accommodation_id
    WHERE s.seminar_id = :P27_SEMINAR_ID
    ;
    

    In the argument to REGEXP_REPLACE 2nd

    [xy]{1,2}
    

    medium 1 to 2 characters of set of x and y. This could be
    x or
    there or it could be 2 characters
    XY or the other way
    YX or it could be the same characters 2
    XX or
    YY

    REGEXP_REPLACE is slower that REPLACE. Even if your original expression is longer, it may be more effective. (Performance may be not a problem in this case.)

  • Need help with a simple calculation.

    I will apologize to the front. I have no knowledge of writing Javascripts. I can use them if someone writes to me, but that's all. I created a simple form with money dealing. I have boxes of different text for the user to enter a number based on what type of coin it is.Currency.jpg

    In the left column, they will enter a number. I would like for the right column counting from that. However, the quantity of money (ie. 100, 50, 20, etc.) is not a text field. It is simply the text entered in another program. I'm looking for is a way to do this without having to do the amounts in currency a text field. Something along the lines of X * 100 is.

    If you can give any help or suggestion, I'd be very happy.

    Thank you.

    You will have to hard code the quantity of money in the script.

    In the first line, create 2 text, Text1 and Text2 fields. Use what the calculation script personalized to Text2:

    If (this.getField ("Text1") ".value! == ' ') {}
    This.getField("Text1").value = Event.Value * 100;
    }

    Clears Text2 if nothing is in Text1
    else event.value = «»

    The second pair of text fields would be "50" instead of "100" in line 2, etc.

  • New to pix, need help with "debug access list of all the" command

    I have a pix 515 v6.3. I am tring to use then "debug access list of all the" command to see what traffic is stopped by my access list. However, I don't get any output. I turn execution of the command, but nothing happens. Other debug commands give the console. Perhaps, I do not understand what "debug to access list of all the" is used for. Any help that can be provided would be greatly appreciated.

    Tim

    Also try following the commands of logging

    LOGG on

    LOGG buff 7

    term Lun

    M.

  • I need help with something simple [How do I Center my webpage?]

    Hello

    I followed the lessons to make my own site. I managed (with the help of you all) but I have a stupid thing that I can't understand. How do I Center the page 1000px. I have now with each thing on the left.

    small page.png

    The 1000px width setting (any id, class or element that has put on in your css), where to add in the next "BOLD" song...

    {#whatever_id}

    Width: 1000px;
    others: attributes;
         Auto margin: 0;

    }

  • Need help with the simple action

    I want to create an action in Photoshop when I return in the next layer and goe later in the previous layer, using shortcuts:

    ALT +]

    [Alt +]

    However, I am Danish and my keyboard using Alt + 9 to create a [ ]

    So I can't create my action... perhaps a kind soul could record this action and post it here?

    (You can also send to me, if that's easier. My address is kasperhviid Insert the @ here gmail.com)

    Hey Kasper,

    Always happy to help a developer to other actions...

    http://Noel.ProDigitalSoftware.com/ForumPosts/For_Kasper.zip

    Recorded in Photoshop CC.  Let me know if you need saved in an older version.

    -Christmas

  • I need help with the updates listed below

    I tried several times to install updates as follows: KB 2468871 KB 2533523 for my Vista SP2 program with a 32-bit and I get the error message 643 / I use Chrome most of the time, but I also have IE.

    You're certainly not alone...

    You can try to repair the .NET Framework 4 and if that doesn't work, download updates relevant manually and install the same.

    To repair the .NET Framework 4 Client Profile or .NET Framework 4 extended etc. -.

    ·         Click on start/Orb and click on Control Panel.

    ·         Go to the program and features.

    ·         Locate the Microsoft.Net Framework 4 Client Profile or .NET Framework 4 extended, right-click.

    ·         You should have the choice to repair or uninstall/change, click it.

    ·         This will then give you the opportunity to fix it

    ·         Select the repair option.

    Manual download of updates (just search for the most relevant to your problem)

    1. http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27017 (KB2539636)
    2. http://www.microsoft.com/download/en/details.aspx?id=3556 (KB2468871)
    3. http://www.microsoft.com/download/en/details.aspx?id=27014 (KB2533523)

    Make sure you download the one appropriate for your system.

    http://support.Microsoft.com/kb/827218

    Install as administrator.

    Addition, it is rather a big discussion here:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_update/Windows-update-fails-to-install-updates-kb2539636/039d7c34-5e25-4cbe-bc47-e0620a6d5b7e

  • Need help with a simple technique

    I use CS4 on Mac. It's my image:

    Screen Shot 2014-12-12 at 10.14.40 AM.png

    It is 9 tiles in distinct, although I don't know if that's relevant or now.

    The turquoise color is a solid turquoise path that lies at the back of the stack on each tile. I have the inside of the diamonds or the contours of the petals in his own way, so that I can introduce a new color. In other words, turquoise diamond contours interiors/white petal, or vice versa.

    What is the technique to do this?

    Mary,

    How about live paint?

    http://www.Graphics.com/article-old/Illustrator-fundamentals-live-paint

  • Need help with query between 2 dates

    Hello

    I did not SEE in a long time and need help with a simple query.

    I have a table of DB access with 3 fields, name, date and number

    What I want is to create a query to retrieve all the names between 2 dates

    When I ask the date field, the results are showing in this formats 2013-07-12 00:00:00

    Here's my query

    < cfquery datasource = 'mydb' name = 'test' >

    SELECT name from myTable

    where edate between ' 2011-01-01 00:00:00 ' AND ' 2013-01-01 00:00:00 '

    < / cfquery >

    < cfoutput query = 'test' >

    #name #.

    < / cfoutput >

    What I get is this error

    ODBC = 22005 (assignment error) error code

    [Microsoft] [ODBC Microsoft Access driver] Type mismatch of data in the expression of the criteria.

    Don't know what I'm doing wrong here.

    Please let me know.

    Thank you

    SELECT ename

    FROM MyTable

    WHERE edate BETWEEN

    AND

    #ename #.

  • [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an auto update that's simple to install, just get this error every time

    [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you

    I had the same problem.  But finally found a solution.  If your listing is similar to mine, then keep.  XP Media Center Edition 2005 (sp2).  AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.

    Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.

    I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.

Maybe you are looking for