Reading array value

Hello, I have a sprite object which contains a textfield.
I have saved that sprite into an array.
How do I construct a trace statement to read the value of the
textfield within the sprite, within the array.
thanks for any help.

Hello there,
In Actionscript 3 you would trace it out like this...
trace(spriteArray[0].getChildAt(0).text);
spriteArray[0] // First item in array
getChildAt(0) // First object of item
.text // First object's text property
Hope that helps

Similar Messages

  • HP QTP10 cannot read Automation values of Advanced DataGrid

    Hi everyone,
    We're an Automation functional testing team, testing a flex application with HP QTP v10. So far we've successfully automated many parts of the application. Now, we're struck at a serious issue.
    The issue is QTP cannot read automation values specified for an Advanced Datagrid (ADG).
    While trying to read row data of the ADG, the automation name of QTP shows like,
    "lblData | someGroup |  | ** |  |  |  |  |  |  |  |  |  | lblData"
    The screenshot of Object Spy while spying ADG is also attached.
    Other than the Automation Index, we are not able to populate any automation values of a row data.
    The ADG is a custom one. Our development team has customized it in some way, and we dont have access to the code. They are using an External renderer or Custom renderer to render values into the column.
    As there is no possiblity for value-based recording, we tried to access the ADG with index-based recording. Then, we 're able to perform operations like Click, but cannot read contents of the row/cell.
    We're using:
    HP Quick TestProfessional v10.0
    Flex plugin 4.5
    Internet Explorer 7
    Flash Player v10
    Our Questions are:
    How to get automation values for these custom ADG?
    Is there any other possible ways to access the custom ADG components other than these automation values?
    Do we need any patches/plugin upgradation to perform this?
    Is there any other tools in market that can recognize and access these custom ADGs?
    Without these automation values we're unable to proceed further work. Any replies/comments/help are welcome.
    Thank you!

    A sortCompareFunction would look something like:
    Function sortWithNullAtEnd(a:Object, b:Object, field:Array = null):int
        if (a.fieldName == null && b.fieldName == null) return 0;
        if (a.fieldName == null) return 1;
        if (b.fieldName == null) return –1;
        if (a.fieldName < b.fieldName)
            return –1;
        if (a.fieldName > b.fieldName)
            return 1;
        return 0;
    Note that this sort would be unstable so you might be better off using a second field to get stability.

  • Can the Ring Properties/Edit Items/Labels be populated by array values?

    Can the Ring Properties/Edit Items/Labels be populated by array values?
    I'm trying to troubleshoot an existing LabView 7.0 application at our office (this is only the beginning of my nightmare) and I'm finding that there is an array being created out of discrete Elements, which is then being indexed using the Indexed Array function, using a Ring control as the Index input. 
    What I'm seeing is that whoever created this "Appication" seems to require that any new 'elements' that need to be added to the array need to added in AT LEAST two locations (add the element to the array and add a label on the Edit Items tab of the Ring control used to index the array) and there may be more locations I haven't found that also needs the same information.  Since I can't see any way for the array and the ring control to 'compare' the text strings, I'm assuming the array is being indexed using the 'values' from the Edit Items tab.  Ths would allow different text in the Ring dropdown than is actually contained in the text of the array.
    This is contrary to most of the coding practices I've learned, so I'm wondering if I could use the text strings contained in the array itself to populate Item list in the Ring control?
    Later I can create an 'entry form' that would allow new parts to be added by staff that doesn't require knowledge of LabView programming. (The "Users" should NEVER have to see the underlying block diagrams/code to add or edit parts ot test parameter values.)
    Thanks

    In 8.2 you can do this with a property node and the "Strings [ ] Property".  It accepts an array of strings.  Order of strings in array sets the order in the control.  Should work in 7.0 as well.

  • Passing array values to an Applet from JSP

    Hi,
    I have a JSP page in which I've arrays that are populated from a DB. I want to pass these array values from the JSP page to a Applet in the same page. Is it possible ?
    Any help will be appreciated.
    :-) Praveen

    Then the answer is no. The Applet doesn't exist until it is instanciated by the browser so the JSP running on the server can not pass Java Objects. You can either set up a javascript array, set the parameter tags in the HTML Applet tag or have the Applet open a URLConnection back to the server.

  • Wonderware and OPC; reading arrays ?

    I have a contact on a project that says Wonderware is not able to read
    OPC data (Shared Variables) from LabVIEW in the form of arrays of double, all data must be single values.
    Can anybody confirm this statement, or tell me otherwise ? I find it strange that
    this big software platform in the year of 2015 cannot read arrays of OPC data.
    Martin

    Hi Martin,
    and in which way can LabVIEW help when "Wonderware is not able to read OPC data (Shared Variables) from LabVIEW in the form of arrays of double" as you wrote?
    That sounds like a problem of Wonderware - and you should ask the support for Wonderware…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Update array value into database

    Hi, I would like to enquire if there is any way to update an array in the database.
    As an example, i have an array which contain the value of the operating hour. I am able to insert the array value successfully into the database. Now i have problem to update the database, for these arrays.
    Any suggestion will be very much appreciated.
    Thank you in advance.

    fizRiani wrote:
    the field type is a string arrayReally? Have never seen that before in databases. Aren't you confusing database field type with Java object type?
    the actual data represent the different operating hour that has to be inserted and updated to the database.I would rather use a chain table. Read on about database normalization.

  • Read color values for swatches in InDesign CS5, js

    Hi,
    I  need to read color values for  swatches. I got this in OMV and was hoping it would give me an array of the color values for all existing swatches, but I am only getting "Object color":
    mySwatches = myDoc.swatches[1].getElements();
    alert (mySwatches)
    Thank you for your help.
    Yulia

    Hi Yulia,
    Try this:
    var
        mD = app.activeDocument, // document
        mS = mD.swatches, // document swatches
        gS = 4, // swatch index
        mC = [mS[gS].name, mS[gS].colorValue, mS[gS].space]; // swatch properties
    alert(mC.join("\r"));
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • Reading return values in ArrayBinding situation

    Hi All.
    I'm currently using ArrayBinding to batch insert/update records into a table. I currently have an InOut parameter set that will either set or return the ID of the row depending if it's an INSERT or UPDATE.
    What I'm struggling to do is to actually read the values that come back after ExecuteNonQuery. here is some excerpts of the code:
    OracleParameter requirementId = new OracleParameter("p_id", OracleDbType.Int32, ParameterDirection.InputOutput);
                   requirementId.ArrayBindStatus = new OracleParameterStatus[reqDS.MyRequirements.Count];
    <set up the other params>
    <set up the values in a loop>
    requirementCmd.CommandText          = "PCM_PKG_REQUIREMENT_DAC.USP_SAVE_REQUIREMENT";
                        requirementCmd.ArrayBindCount     = reqDS.MyRequirements.Count;
    requirementCmd.ExecuteNonQuery();
    Now what? I've tried all sorts of ways to get to this but to no avail. My code to get it currently looks like this:
    for (int j = 0; requirementId.ArrayBindStatus.Length - 1;j++)
                             //value = CType(outParameter.Value, Object)(i);
                             requirementToReqVersion.Add(reqDS.MyRequirements.RequirementId,requirementId[j].Value);               
    This doesnt even compile but you can see what I'm getting at. I just need to retrieve a value given an index in the array bind? Thanks for the help in advance..
    jk     

    In VB.NET, we do something like this:
    Option Explicit On
    Option Strict On
    Dim values() As Object
    ReDim values(versions.Length - 1)     ' expected nbr of returned values
    ReDim identities(versions.Length - 1)
    Dim outParameter As OracleParameter
    outParameter = command.Parameters("NameOfOutParameter")
    CDbLateBinding.GetObjectArrayFromOutParameter(outParameter, values)
    Dim i As Integer
    For i = 0 To values.Length - 1
    identities(i) = CType(CType(values(i), OracleDecimal).ToString, Decimal)
    Next
    ' Separate file
    Option Strict Off
    Public Class CDbLateBinding
    Public Shared Sub GetObjectArrayFromOutParameter(ByVal parameter As OracleParameter, _
    ByVal values() As Object)
    Dim i As Integer
    For i = 0 To parameter.ArrayBindStatus.Length - 1
    values(i) = CType(parameter.Value, Object)(i) ' Option Strict Off
    Next
    End Sub
    End Class
    Looks a bit awkward but works fine.
    Armin

  • Read variable value knowing only name

    Is there a way to read a variable value from only knowing the label name? I have Labview 11 and am reading a text file with a list of variable labels and trying to read the value without having to create a case structure of hundreds of variables.
    Solved!
    Go to Solution.

    My first answer was going to be "No", but then I started to think about it.  I'm assuming that the Variables are controls or indicators that are part of the VI or Project of interest.  You could do the following (but it could get messy) --
    Use the AllVIs property of the current Application to get an array of all VI names in memory.
    For each VI name, get a VI Reference, use that to get a Front Panel Reference (property), use that to get Controls[] (property).
    For each Control, get its Label (property).  At this point, I think I'd make two arrays, one of the Control References, the other of the Labels.
    Once your arrays are built, you can use the Array functions to find the index of the variable you want in the Labels array, and use that index to pull the Value out using the appropriate indexed Control Reference.  Note that this doesn't tell you the "Type" of the variable -- this will be left as an Exercise to the Reader.
    Let me know if this works, and is worth the effort.
    BS

  • How to read enumerated values from an OPC server via Datasocket

    Hi Labviewers,
    I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
    I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
    Many thanks in advance
    Dimitris

    Hi Sarah,
    With the input type as variant I get the following response:
    1                                     <-This is the current numeric value of the parameter
    4 Attribute(s):
       'Quality' -> 192
       'TimeHigh' -> 29861723
       'TimeLow' -> -665408304
       'Timestamp' -> 39.238E+3
    With the Input set to         Enum constant I get no values or strings coming back. With the Input set to                Ring constant I just get the numeric value   
    Dimitris   

  • How to read all values of a queue

    Hi All,
    In Message mapping I am checking condition for field value based on incoming value.
    In test cases i can see the second or third  occurence is getting supressed and first value fails the condition and mapping node not created.
    I would like to know how to read multiple values from queue and check condition for each value and if correct value present condition should pass.
    I tried all possible context changes but no luck.
    Any ideas how to read all values coming .
    Thanks.

    <?xml version="1.0" encoding="UTF-8"?>
    <msg version="" dbName="">
       <rowOp isLast="" cmitLSN="" cmitTime="" authID="" correlationID="" planName="">
          <updateRow subName="" srcOwner="" srcName="" intentSEQ="" rowNum="" hasLOBCols="">
             <col name="END_RSN_CDE" isKey="852369" invalidData="" rawData="">
                <smallint>
                   <beforeVal invalidData="" rawData=""/>
                   <afterVal invalidData="" rawData=""/>
                </smallint>
                <date>
                   <beforeVal invalidData="" rawData=""/>
                   <afterVal invalidData="" rawData=""/>
                </date>
                <char>
                   <beforeVal invalidData="" rawData=""/>
                   <afterVal invalidData="" rawData=""/>
                </char>
             </col>
             <col name="SVC_USER_SDT" isKey="789654" invalidData="" rawData="">
                <smallint>
                   <beforeVal invalidData="" rawData=""/>
                   <afterVal invalidData="" rawData=""/>
                </smallint>
                <date>
                   <beforeVal invalidData="" rawData=""/>
                   <afterVal invalidData="" rawData=""/>
                </date>
                <char>
                   <beforeVal invalidData="" rawData=""/>
                   <afterVal invalidData="" rawData=""/>
                </char>
             </col>
          </updateRow>
       </rowOp>
    </msg>

  • Problem reading RFC values from IRecordSet !!!!

    Hi All,
    I am having some problem reading values from IRecordSet. Can not seem to parse the output structure from RFC. AM using connector gateway service to execute BAPI_EXCHRATE_GETCURRENTRATES.
    Here is the code,
    MappedRecord input = rf.createMappedRecord("input");
    input.put("DATE",new String("01011990"));
    input.put("DATE_TYPE", new String("V"));
    input.put("RATE_TYPE", new String("M"));
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    Object rs = null;
    IRecordSet recSet = null;
    Object result = output.get("EXCH_RATE_LIST");
    if (result == null) {
    response.write("<BR>null");
    rs = new String(" ");
    } else if (result instanceof IRecordSet) {
    IRecordSet irs = (IRecordSet) result;
    response.write("<BR>Got some dataaa");
    IRecordMetaData rsmd = null;
    rsmd = irs.retrieveMetaData();
    irs.beforeFirst();
    while(irs.next()){
    response.write("Row::"+irs.getString("RATE_TYPE")+" "+irs.getString("FROM_CURR")+" "+irs.getString("EXCH_RATE"));
    Am getting the pritn statement, Got Some Data on the PDK component.
    But somehow not able to read the values from IRecordSet
    What is the mistake here?
    Pls help
    Edited by: Aakash Jain on Oct 11, 2008 12:22 AM

    Hi
    Try in this way.
    IRecordSet resultTable = (IRecordSet)outputParams.get("TABLE_NAME");
    for(resultTable.beforeFirst(); resultTable.next(); ) {
    response.write(resultTable.getString(0));
    response.write(resultTable.getString(1));
    Thanks

  • Short dump in reading selection values in Report

    Hi all,
    I have created a Navegational Attributte and added this Info Object in the existing Query and for this object we have created Charactistics Value Variable with Uesr Entry.
    But, When we use input selection option to select a vlaue for this Variable  in the Variable Selection Screen it is trying to read the values and going into short Dump but for other variables Selection option is working fine.
    Please anyone help me if you have the solution.
    Regards,
    Ali.

    Hi,
       Try deleting the master data and reload the master data again and check for the selection variables. Check the short dump in ST22 it will say which master table ie SID table or master table where the join fails.
    Thanks,
    Arun

  • Determine/read the value of parameter rdisp/max_wprun_time within ABAP

    Hi,
    I need to avoid program breaks caused by exceeding run time longer than defined in parameter rdisp/max_wprun_time.
    I will check the time since start of report in the critcal loop to bring the current data changes to a controlled end before getting a program break. I won't put a constant to the report, I will have a dynamical routine to avoid changes of report if the value of parameter rdisp/max_wprun_time will be changed.
    But how can I get the value of this parameter within my ABAP report? Is there a table where this value has been stored? Is there an existing function module or a method to read the value?
    Thank's a lot in advance!
    Georg

    The runtime   parameter (GET RUN TIME ) can be used to dynamically get the program run time
    DATA T TYPE I.
    GET RUN TIME FIELD T.
    WRITE: / 'Runtime', T.
    or
    U probably can store the start date and time in TVARV with some variable ( line concatenate program name + START Date + Time)
    and then use
    SD_DATETIME_DIFFERENCE
    or
    SD_CALC_DURATION_FROM_DATETIME
    Regards,
    Mithun Shetty

  • Function Module to Read attributes value from Classification tab

    Dear Experts ,
    We are using material classification in the material master. Under classification tab of material master , we are maintaining certain characteristics and their corresponding values.
    I want to read those values and use those in one of the report.
    Can you please help me in identifying Function Module which will return the values of all the attributes of that material.
    Thanks in advnce,
    Regards,
    Nikhil

    You can check those details using CT06 transaction.
    FM CLAF_CLASSIFICATION_OF_OBJECTS can be used to retrive the data using program.
        CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
          EXPORTING
            class              = gc_class
            classtext          = 'X'
            classtype          = gc_classtype
            clint              = gc_mmpsk
            features           = 'X'
            language           = sy-langu
            object             = l_object
            key_date           = sy-datum
            initial_charact    = 'X'
            change_service_clf = ' '
            inherited_char     = 'X'
          TABLES
            t_class            = lt_class
            t_objectdata       = lt_objectdata
          EXCEPTIONS
            no_classification  = 1
            no_classtypes      = 2
            invalid_class_type = 3
            OTHERS             = 4.

Maybe you are looking for

  • Installation problem on SP3

    Hi All, I've failed at the first hurdle. The installation program doesn't run for more than 1 minute. I get no interactive dialog boxes, all I get is a window "Program Starter" window for a couple of seconds then it goes away again. The log on the Pr

  • New Program Guide - unusable

    I want to be tactful about this - what would be the best way to characterize your new program guide - Sick Joke? In what sense is it an improvement over the previous one?  It is in fact immeasurably WORSE.  How could anyone at Verizon have signed off

  • Hot to remove button for a particular record in ALV lvc version

    Hi, i have created ALV using 'REUSE_ALV_GRID_DISPLAY_LVC' function module, in which am displaying buttons in a colomn. Now i want to remove the button for few records based on some condition.How is it possible. Regards, Manoj.

  • Hard Drive Check

    Hey users, I'm new around this forum and just want some quick help. Just to inform everyone, I already tried contacting Apple but after being put on hold for an hour, and finally finding someone to talk to, the call hung up after three minutes, so I

  • Missing inspector and media browser please help

    Hi, I have been happily editing in iweb - building a new website... but today suddenly I have found it impossible to make the Inspector to appear and the media browser is also absent - no matter how many times I click the appropriate buttons.. on the