table behavior difference between php and flex?

I think that this problem is probably caused by a difference in behavior of the table between php and flex I am not quite striking.  It's the flex code that I wrote and the php code is shown below.  I'm new to flex and this really left me speechless.    Thanks a lot for your help.

The entries are father = [SB1, kit] dam [kit, kit] = sireLinkedP = E (P) and [e F]

Output should be (and is with PHP) random = [E, P, SB1], [E, P, kit], [e, P, SB1], [e kit, P],

What I get is random = [E, P, SB1, kit], [E, P, SB1, kit], [e, P, SB1, kit], [e, P, SB1, kit]

function randomlinks(sire:Array,dam:Array,sireLinkedP:Array):Array {}

var str:String [0] sire = .toUpperCase ();

var str1:String sire [1] = .toUpperCase ();

var str2:String dam [0] = .toUpperCase ();

var str3:String dam [1] = .toUpperCase ();

var x: uint = sireLinkedP.length;

var k: uint = 0;

var random: Array = new Array();

x--;

trace ("randomlinks sirelinked:" + sireLinkedP);

for (var i: uint = 0; i < = x; i ++) {}

for (var j: uint = 0; j < = 1; j ++) {}

random [k] = sireLinkedP [i];

trace ("random" + k + ":" + random [k]);

If (str == [0] sire | str1 == sire [1] | str2 == dam [0] | str3 == dam [1]) {}

random [k] .push (sire [j]);

     }//end if

trace ("random" + k + ":" + random [k]);

     k++;

} //end for loop

} //end for loop

trace ("randomlinks:" + random);

return (random);

{ } //end randomlinks function

function randomlinks ($sire, $dam, $sirelinked) {}

$x = count ($sirelinked);

$x--;

$k = 0;

for ($i = 0; $i < = $x; $i ++) {}

for ($j = 0; $j < = 1; $j ++) {}

$random [$k] = $sirelinked [$i];

if (ctype_upper($sire[0]) | ctype_upper($sire[1]) | ctype_upper($dam[0]) | ctype_upper($dam[1])) {}

array_push($random[$k],$sire[$j]) ;}

$k++;

}

}

Return ($Random);

}

You are right to make a copy. In Flex, the tables are references, if this assignment: random [k] = sireLinkedP [i] affects [k] random real behind sireLinkedP [i] matrix instead of a copy. Who is?

-Kevin

Tags: Flex

Similar Questions

  • Real-time communication between PHP and Flex application

    My client wants to replace the buttons 'Refresh' in their Flex/PHP app with updating in real time, so as to data changes, it is pushed to the client.

    I came across a few articles which cover this topic, but I'm hard-pressed to find the best approach. Can someone suggest possible solutions?

    Any help would be appreciated. Thanks in advance.

    If your server supports K 100 simultaneous connections with push (permanent connection)

    It can be used 100K users simultaneous apps. With polling stations, it can serve more

    100 k because it opens a connection and then it closes once the answer has

    been sent, so until this client polls again it can handle other requests of

    other customers...

    C

  • The differences between CAT and table TAB

    1. What is the difference between cat and TAB?
    2. why TAB does not exist in dict?
    3. that the same situation for cat and TAB?

    Thanks a lot for your answer kindly.

    sys@ORCL > cat desc
    Name Null? Type
    ----------------------------------------------------- -------- ------------------------------------
    TABLE_NAME NOT NULL VARCHAR2 (30)
    TABLE_TYPE VARCHAR2 (11)

    sys@ORCL > tab desc
    Name Null? Type
    ----------------------------------------------------- -------- ------------------------------------
    TNOM NOT NULL VARCHAR2 (30)
    TABTYPE VARCHAR2 (7)
    NUMBER OF CLUSTERID

    sys@ORCL > select * dict where table_name = "CAT";

    TABLE_NAME COMMENTS
    ---------- -----------------------------------
    Synonym of cat for USER_CATALOG


    sys@ORCL > select * dict where table_name = 'USER_CATALOG ';

    TABLE_NAME COMMENTS
    -------------------- -----------------------------------------------------------------
    USER_CATALOG Tables, views, synonyms, and sequences belonged to the user

    You've posted enough to know that, for each position, you will need to provide your version of Oracle 4-digit (SELECT * FROM V$ VERSION)
    >
    1. What is the difference between cat and TAB?
    2. why TAB does not exist in dict?
    3. that the same situation for cat and TAB?
    >
    1, 2, 3 - TAB has been deprecated then don't use it.

    Definitioni of base for those located in the reference database
    http://docs.Oracle.com/CD/B28359_01/server.111/b28320/statviews_2127.htm#sthref1535
    >
    CAT

    CAT is a synonym for USER_CATALOG.
    . . .
    USER_CATALOG

    USER_CATALOG lists all the tables, views, clusters, synonyms, and sequences belonged to the current user. Its columns are the same as those of "ALL_CATALOG".
    . . .
    DICT

    DICT is a DICTIONARY.
    . . .
    DICTIONARY

    DICTIONARY contains descriptions of data dictionary tables and views.
    . . .
    TAB

    TAB is included for compatibility. Oracle recommends that you do not use this view.
    >
    TAB has been deprecated. He looks like the cat because it shows the USER objects, but it does not show the sequences, like the cat.

    If you look at the source code for the views TAB and USER_CATALOG you can see the differences. This code is copyrighted by Oracle Corporation, all rights reserved.

    /* Formatted on 1/1/2013 8:50:07 AM (QP5 v5.115.810.9015) */
    CREATE OR REPLACE FORCE VIEW SYS.TAB
    (
       TNAME,
       TABTYPE,
       CLUSTERID
    )
    AS
       SELECT   o.name, DECODE (o.type#,
                                2,
                                'TABLE',
                                3,
                                'CLUSTER',
                                4,
                                'VIEW',
                                5,
                                'SYNONYM'), t.tab#
         FROM   sys.tab$ t, sys."_CURRENT_EDITION_OBJ" o
        WHERE       o.owner# = USERENV ('SCHEMAID')
                AND o.type# >= 2
                AND o.type# <= 5
                AND o.linkname IS NULL
                AND o.obj# = t.obj#(+);
    . . .
    /* Formatted on 1/1/2013 8:54:45 AM (QP5 v5.115.810.9015) */
    CREATE OR REPLACE FORCE VIEW SYS.USER_CATALOG
    (
       TABLE_NAME,
       TABLE_TYPE
    )
    AS
       SELECT   o.name,
                DECODE (o.type#,
                        0, 'NEXT OBJECT',
                        1, 'INDEX',
                        2, 'TABLE',
                        3, 'CLUSTER',
                        4, 'VIEW',
                        5, 'SYNONYM',
                        6, 'SEQUENCE',
                        'UNDEFINED')
         FROM   sys."_CURRENT_EDITION_OBJ" o
        WHERE   o.owner# = USERENV ('SCHEMAID')
                AND ( (o.type# IN (4, 5, 6))
                     OR (o.type# = 2 /* tables, excluding iot - overflow and nested tables */
                         AND NOT EXISTS
                               (SELECT   NULL
                                  FROM   sys.tab$ t
                                 WHERE   t.obj# = o.obj#
                                         AND (BITAND (t.property, 512) = 512
                                              OR BITAND (t.property, 8192) = 8192))))
                AND o.linkname IS NULL;
    
  • The difference between delete and insert transactions

    Hello

    How can I tell the difference between delete and insert in a process using Apex 5.0

    Best regards

    OraDev wrote:

    In a presentation table when you click the "Delete" button checked the database update triggers trigger I do not know why

    Do you really mean 'database trigger', or are you referring to a process of page APEX? Ensure that the tabular form MRU delete process conditional on the button DELETE and that the MRU update process is conditional on the "SAVE" button.

  • Difference between 'Form' and 'object '.

    I am writing today a guide in my native language and want to understand the difference between 'Object' and 'Form' for Illustrator. We have menu object in the Panel and can find a few options of forms under this menu.

    Also we program this object is:

    In computing, an object can be a variable, a data structure, a function or a methodand as such, is a location in memory value and possibly referenced by an identifier.

    In class-based object-oriented programming paradigm, 'object' refers to an instance of a class where the object can be a combination of data structures, functions, and variables.

    Relational database management, an object can be a table or column or an association between data and entity of database (such as the age of a person concerning a particular person). [1]

    So my question is: If we create a form in artificial intelligence can we call it 'object' and vs. ?

    There is menu item "Create object mosaic" option which works only with raster images. This is why any other object in artificial intelligence is not object?

    Thank you

    "In illustrator is an 'Application based on the objects' any item placed in the drawing area that you can select is called" object "where as".

    a form is an object of two dimension.

    We could say : each form is an object , BUT not every object is a form.

  • What is the difference between Count (*) and Count (1)?

    Hello

    can you please what is the difference between Count (*) and Count (1)?

    I saw that Count (*), Count (1), Count (2)... etc return values from a table. Is there an exact difference between them?

    Have you read the forum space FAQ? I'm sure that you don't have because it is answered there.

    It is also answered via Google.

    The short answer is: there is no difference, unless you use count (1), count (2), etc. instead of count (*) it makes you look like an amateur.

  • What is the difference between Oracle and MySQL

    Hello

    I would like to know the major difference between Oracle and MySQL. I have a project to generate tables of database XML files, I used the functions XML built oracle XMLELEMENT, XMLAGG XMLATTRIBUTES, XMLFOREST. I really want to know if these functions (or) similar functions are taken into charge/availabe in MySQL.

    I'm having a hard time finding better linux distro to install Oracle11g, so I intend to move to MySQL. Please help, thanks in advance.

    Supported operating system versions are documented - http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#CIHFICFD

    HTH
    Srini

  • difference between BYTE and CHAR

    Hi all

    Oracle, as in syntax below, what is the difference between BYTE and CHAR used as size data type for the column NAME:

    CREATE THE CUSTOMER TABLE
    (
    NAME VARCHAR2 (11 BYTE),
    CUSTOMER_ID NUMBER
    )

    and

    CREATE THE CUSTOMER TABLE
    (
    NAME VARCHAR2 (11 CHAR),- or even VARCHAR2 (11)
    CUSTOMER_ID NUMBER
    )



    Rgds,
    PC

    First - do not use reserved words for column (NAME).

    If the database character set is UTF-8, which I believe is the default value in the recent version of Oracle. In this case, some characters take more than 1 byte to store in the database.

    If you set the field as VARCHAR2 (11 BYTE), Oracle will allocate 11 bytes for storage, but you can not actually be able to store 11 characters in the field, because some of them take more than one byte to store, for example, non-English characters.

    By setting the field as VARCHAR2 (11 CHAR) you tell Oracle to allocate enough space to store 11 characters, regardless of the number of bytes it takes to save each of them. I think that in Oracle 10g, 3 bytes per character were used.

    Kind regards

    Robert.

  • Explain the difference between OIA and Global users

    Hi all;

    I have question: explain the difference between OIA and Global users

    smbd explain this issue?

    --
    Eugene

    Globalusers are your HR users typically & stored in the table globalusers-> http://wikis.sun.com/display/OIA11gDocs/GlobalUsers+Module

    While the OIA users are users with access to the OIA console for example certifiers etc & stored in the RBX tables *-> http://wikis.sun.com/display/OIA11gDocs/Security+Module#SecurityModule-RBXUSERSTable

  • What is the difference between EPMA and Essbase Studio

    If the two are not used to design applications?

    And a really need Essbase Studio?
    What is the difference between EPMA and Essbase Studio

    ^ ^ ^ It's a little confusing, isn't? As far as I understand the role of EPMA, it is a way to share dimensions and common data between several products Oracle EMP including Planning, Essbase and HFM. In fact, I don't know if other products live in EPMA. What is EPMA not have is a great way to supply or manipulate the dimension and fact tables (or files). Oh, there are tables of the interface, but you will write the code/use the utility of dimension EPMA to load dimensions. I must say that I never tried to load through EPMA data so that someone else will have to pronounce on it. Once the dimensions are built, you can deploy Essbase (and other products) of common and specific to the database dimensions.

    Studio is the tool you will use to go against a data warehouse, or something terribly close a data warehouse to build Essbase databases. Just for Essbase - HFM, planning, etc. are not the targets of the Studio release.

    What gets confusion / intriguing, is that when EPMA deploy Essbase apps, it uses Studio under the covers to do. So the interesting implementations where people use Studio (which is much more flexible than EPMA because it is a development tool as opposed to a dimension/data management application) to read the tables, EPMA interface (and as far as I know, the EPMA base tables) and create Essbase applications like that.

    If you think that there is overlap, I agree with you, but you can see that they are not the same.

    And a really need Essbase Studio?

    ^ ^ ^ Do not use Studio to build Essbase databases. You can go hog wild in EAS with loading SQL rules if you want, even if at some point it will be probably easier and simpler to build in the Studio. Although the Studio has been mentioned as the replacement of EAS for awhile, I suspect the effort required to build a database in Studio will keep around for quite a while EAS or Studio Lite will be out. There is a lot to say (sometimes) for the incredible flexibility EAS/Essbase-Studio requires a more methodical approach and EPMA has a very formal set of standards and methods.

    Phew, I'm sorry, I wrote a book on this subject and I bet you get a lot of differences of opinion on that.

    If you are interested in the Studio, you could do well to take a copy of 'Look smarter than you are with Oracle Essbase Studio 11' of Glenn Schwartzberg. I don't get a penny from the sale while I was among the writers of copy (Hey, I got a mention in the acknowledgements). It's a good book and an excellent introduction to the tool.

    Kind regards

    Cameron Lackpour

  • Difference between CS3 and CS4 when you place images, unguarded percentage

    There is something of a difference between CS3 and CS4 when you place images. The images I'm dealing with right now were vector images, but it could apply to all sorts of images.

    When you replace an existing image, the behavior of CS4 is to leave the image full frame. In CS3, the percentage was set at 100% as default (% see you when selecting the image, not the container).

    Also when you replace an impage in CS4, the 'internal' picture frame is maintained, while in the C3, the percentage was limited.

    Y at - it sort of investment preferences / settings leave CS4 same wat like CS3 did, when you place an image?

    -Andreas

    If reliinking keeps the scale or dimensions is now a part of preference in CS4, if that helps.

    You can play with this setting and do a few manual rebinding to see if something is appropriate. I'm not a script, but I think you can reset this preference as part of a script.

    Peter

  • What is the difference between oracle and peoplesoft databases

    What is the difference between oracle and peoplesoft databases. How the tables of metadata between the two relate?

    According to my understanding, peoplesoft database exists as a schema on the oracle database.
    Please correct me if iam wrong.

    user4212454 wrote:
    ...
    The second statement, I realized that each schema created its specific use.
    for example, peoplesoft had 1000 objects (including the peopletools and application and system tables), each schema created above has access restrictions different on these database of 1000 objects. Am I wrong?

    Yes, each schema has its own purpose and the grant for objects of Peoplesoft. SYSADM is the owner of the objects of Peoplesoft with all rights. PS is the owner of one and same table, PSDBOWNER and the PEOPLE is granted to select three of these tables (PSOPRDEFN and PSACCESSPRFL PSDBOWNER).

    In addition, for DB2, what are the patterns of PeopleSoft?

    It is located in the installation documentation dedicated to the database you want to work on:
    http://download.Oracle.com/docs/CD/E15742_01/PSFT/HTML/docset.html

    The first statement, could you please elaborate on the part highlighted.

    A "Peoplesoft database" is nothing, it's terms to refer to a database containing everything you need to make a Peoplesoft application running.

    Nicolas.

  • Difference between Nohup and &amp;

    Hello

    Please help me understand the difference between nohup and & UNIX... I will be really grateful if you owe me explaun in detail...

    Thank you
    Martine

    "nohup" is to allow a process run disconnected. Thus, the process can run even if your disconnection.

    '&' is to allow a process running in the background. This allows you to run another command/program of the same shell you have invoked the first process of.

    If you use '&' alone, when you log out, the process that you started in the background would also stop because it is not disconnected from your shell, it is still a "child" of your shell process.

    So, if you want to start a program and also make it continue running even when your disconnect / close your shell, you would use the 'nohup' and the '&' as

    nohup run_my_program &
    

    NOTE that the behavior of the "nohup" varies from shells - sh, ksh, bsh, csh then you must read the documentation on the special shell you use and/or test the behavior of nohup first on your particular connection.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • CDC: Difference between coherent and Simple mode?

    Hello

    I would like to know if anyone can explain the main differences between the two modes of the CDC?

    In fact, we are interested in implementing a DCC ODI asynchronous Oracle newspaper.
    But we would like to make sure that it matches our needs.

    I understand that the simple mode is on a table and the consistent on several articulated together.
    But my questions are:

    -Could we choose to log table for only some of the columns.
    -> If in my table, I'm not interested in the change of some columns, I can 'say' to the CDC do not watch?
    or the CDC can tell me which column had been updated?

    -in fact, I would like to know what is the difference between Simple and consistent? and if the mode is just a Simple mode for more than one table?
    Cause, we need to know what the source columns had been updated for each record, not only the primary key of the record being updated.

    I know that Oracle CDC allows it, but I don't know if ODI enable us to see only the columns that have been updated.


    Thanks in advance

    Brice

    Hi Brice,.

    AFAIK for a coherent CDC referential integrity must be set at the level DB (PK, FK).
    Personally I have never used any logical key, so I'd rather hear for a few experienced comments.

    Thank you
    Fati

  • Difference between getRowCount() and getFetchRowCount()

    Hello


    What is the difference between getRowCount() and getFetchRowCount()?
    and where to use this method.

    Thank you and best regards,
    Jean Blaise

    Jean Blaise,

    getRowCount() causes the whole view defined subject line must be extracted from intermediate level.

    getFetchRowCount:-This tells us the number of lines that have been recovered in all lines, and not pull additional lines in some of the other methods 'get count' will love.

    That said, if you have a table with a default row area of say 10 lines per page, then fetchrowcount will display 10 at a time and getrowcoutn will show whole row in VO.

    int fetchedRowCount = vo.getFetchedRowCount (); Print the number of line exposed in a table at the same time

    vo.getRowCount (print as many rows in VO)

    Thank you
    -Anil

Maybe you are looking for