Component of addresses with the syntax of the string in QML

Hello

I want to loop on about 50 components manually created in qml. They have IDS as "comp1", "comp2", "comp3" and so on. So I thought I could use the following syntax within the loop

["comp" + i] .property

to meet an items property, but it does not work.

Its strange because this syntax works when you access properties in qml:

Console.log (main.testProperty) and

Console.log (hand ["testProperty"]) is the same and works

Any idea?

PS I know I can do it with c ++, but my goal is to do the things related to the view in the layer qml that an i'm just exploring how far I can go...

OK, its is not possible, but I found another way to get the child to the components of a container:

Container.Controls gives a table of all children. Now, I can easily loop with myContainer.controls [i] through all children of the container a set of properties.

Very convenient.

Tags: BlackBerry Developers

Similar Questions

  • I use Verizon as a server with their security suite. I can receive emails with any address with the exception of Windows Live Hotmail addresses.

    I use verizon as a server with their security suite.  I can receive emails with any address with the exception of hotmail addresses.  I put the filters for hotmail, but I can not receive emails from anyone with a hotmail account.  Any ideas or suggestions?
    Thank you

    Hi DonaldMagaw,

    When you use Windows Live Hotmail and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Solution Center Hotmail Portal

    http://windowslivehelp.com/product.aspx?ProductID=1

    I hope this helps.

  • Thunderbird won't allow 2 different addresses with the same user name

    I have a website ( www.pcxt-micro.com ) and I have 2 two addresses: 1 pcxtmicro@pcxt-micro.com (username: pcxtmicro) and 2. b4ur90@pcxt-micro.com (username: pcxtmicro).

    Problem is that I had no problem with the above configuration (using Eudora7), but Thunderbird will not allow the above configuration.

    I can't change usernames for access to these two 2 e-mail accounts as the ISP does not allow.

    How can I solve this problem?

    You can add the second as an alias email address. In Thunderbird, this is called identity.
    See _ http://kb.mozillazine.org/Mozilla_Suite: _FAQs_:_Mail_Aliases

  • Analyze the Mac address with the regular expression matching

    Hello world

    I have a problem with the function of regular expression matching,

    I try to analyse the response both a query arp - a 192.168.0.15 to retrieve the MAC address of the remote IP address, I used the following regular expression: ^ ([0-9a-fA-F]{2}[:-]){5}([0-9a-fA-F]{2})$

    I wonder why should I do a subset of the first string to extract only the part of the MAC address. The regular Expression function is not able to recognize the regular expression directly in the middle of a string?

    I only works when I extracted the subset of tring right as in the picture below.

    Thanks for your replies.

    Get rid of the "^" at the beginning of your regular expression. You are ordering him to find the model at the beginning of the string.

  • How Internet IP address with the Linksys BEFSX41 router pings?

    Hello.

    Does anyone know how to let my Internet IP address responding to pings from the outside with this model of router? I can't seem to find the option to set (the configurations of way more than my old Netgear RT311). I couldn't find it via Google search (all internal pings). I use the 1.52.15 firmware version.

    Thank you in advance.

    See the demo of the UI here. Change the option "Block anonymous Internet requests" for people with reduced mobility. Then the router will respond to the pings on the ip address. If this does not work once you change it, check that the BEF was really a public IP address on the internet port. Check the status page it shows what IP address the router uses on the internet port.

  • My IP security camera is different my network ip address, how to configure the camera to match the ip address with the router cable time Wörner

    Please someone help me configure my camera IPsecurity model m12 mobotix ag. It allows to work in the corporate network, but they close down and I didn't bring the camera House but there different IP address of my network and I don't know how to configure the camera to have the same IP address with my home router to TWC, thanks

    Router connections by opening network, in the Panel control, search for the router / properties, enter its configuration

    data in the boxes provided, you will get on the router, a sticker shows data. If lost or deleted, go to its Web

    for the data. Also, perhaps the home page of IP camera offers software/drivers.

  • Need a bit of help with the string read/write DLL

    I have a DLL that communicates via RS232 with some instruments.

    From 2 numbers (parameter number and a number of processes) the DLL will communicate and extract the values.

    I managed to put in place the DLL to get words, characters, long and floats (single precision).

    Now, it is the documentation that accompanies it for strings:

    ReadString asks the DLL to get the data of the instrument, if succesfull I have others on call GetString to get the string memory.

    I have a few questions:

    -The values of her star (*) are pointers; As I understand it that it points to a place of memory where the value is stored, is - that correct?

    -How do I know if I pass the value to the DLL, or read? For example with GetString Im not sure if

    I should pass the length of the string to the DLL or if it is read

    -How to get the character returned in a string; IM assuming I need to find somewhere a byte array.

    Now I can also write strings:

    As a matter of f:

    -Should I add NULL at the end of the string, or labview does by default?

    My procedure is now: read the input chain, reduce it to the size of the specified string (this is constant according to the setting of the instrument), converted to a byte array and replace the last element of the array with 0 (Null).

    However, the DLL entry expected a character, that I should get in the DLL?

    _Faust wrote:

    I have a few questions:

    -The values of her star (*) are pointers; As I understand it that it points to a place of memory where the value is stored, is - that correct?

    They can be pointers or buffers. Which of the two is ambiguous in the syntax of C. However, in your case I suppose that piMsgId and pcLen be a pointer to a unique value and pszDest a string buffer.

    -How do I know if I pass the value to the DLL, or read? For example with GetString Im not sure if

    I should pass the length of the string to the DLL or if it is read

    Description is not really clear however most of the C API require today the length of the allocated buffer at the entrance to make sure that they don't overrun the buffer length. They may or may not change this value before returning to indicate the amount of data they actually informed. The pcLen parameter passed by reference probably indicates that this function does this way.

    -How to get the character returned in a string; IM assuming I need to find somewhere a byte array.

    It is not necessary. You can simply set the parameter to a string and must be passed as a C string pointer. In LabVIEW 8.5 or more you can also configure to resize this string for the number of characters as indicates it a different setting of the library to compose the node (CLN), in this case your pcLen. 8.5 you can use a table to explicitedly initialization function create a table Bbyte of the length needed, convert the byte array to string and pass to the CLN parameter. LabVIEW will return automatically only the part of the string up to the NULL character if a CLN is configured as C string pointer

    Now I can also write strings:

    As a matter of f:

    -Should I add NULL at the end of the string, or labview does by default?

    No! If you configure the parameter is a string, passed as a string pointer C, LabVIEW will do it automatically for you.

    My procedure is now: read the input chain, reduce it to the size of the specified string (this is constant according to the setting of the instrument), converted to a byte array and replace the last element of the array with 0 (Null).

    However, the DLL entry expected a character, that I should get in the DLL?

  • ring with the string value

    I would like to know if there is a way to make a single control (either a ring or other) where a string that is displayed to the user has a string in its output value.

    For example, I have a power laser with a serial port and the command to turn on the laser diodes is LASER1;

    I want to display the 'LIGHTS ON' string to the user, but that control to provide 'LASER1' value when selected.

    It's easy to do with two controls, for example, can I have an enumeration with the display of the user strings and an enum with the chains of command of the laser, but then I have to make sure any changes affect the two controls.

    If it's a single control, it is less likely to be a mistake when a change is made.

    Any help is greatly appreciated.

    I'm using LabView 2009

    Never heard of the drop-down list box?  Could be a winner, just uncheck values Match points.

  • Orders series does not work with the string constant

    I have a single serial device, I used.  The device requires no handshake.  Simply send a command to the device and the device responds.  I modified the example labview for simple serial communication and that works when I enter the chain command and click the button to send the command to the device.  But when I tried to put the same example of communication series in a simple state machine where I replace the chain control on the front panel with a string constant on the scheme that the standard equipment does not respond.  Where do I go awry with the constant string and the state machine?

    Thank you

    Control of the working channel is \-codes display, while the constant diagram is in normal display. Once you pass the constant \-codes diagram, you will see that it is in fact "/ 1ZR\\r\\n". Switch to \-codes, re - enter the text you want and see if things improve.

  • sql Update query after matching with the string

    I am trying to reach the query that updates a table column with the value of the other table, after that he finds an exact match.

    So here's the table data and sample to create.
    create table code1 
    (
        codeid number,
        codedesc varchar2(60)
    );
    
    Insert into code1 values ( 1,'R1 CONTRACTS');
    
    Insert into code1 values ( 2,'R2 CONTRACTS');
    
    Insert into code1 values ( 3,'R3 CONTRACTS');
    
    Insert into code1 values ( 4,'R5 CONTRACTS');
    
    Insert into code1 values ( 5,'R9 CONTRACTS');
    
    Insert into code1 values ( 6,'R10 CONTRACTS');
    
    create table table1 
    (   
        tablekey number,
        prefix  varchar2(25),
        codedesc    varchar2(60)
    );
    
    Insert into table1(tablekey,prefix) values (1,'1001PAC');
    
    Insert into table1(tablekey,prefix) values (2,'1001MXT');
    
    Insert into table1(tablekey,prefix) values (3,'1002PAE');
    
    Insert into table1(tablekey,prefix) values (4,'1003PCS');
    
    Insert into table1(tablekey,prefix) values (5,'1004BDX');
    
    Insert into table1(tablekey,prefix) values (6,'1005PAC');
    
    Insert into table1(tablekey,prefix) values (7,'1006PAC');
    
    Insert into table1(tablekey,prefix) values (8,'1007LDR');
    
    Insert into table1(tablekey,prefix) values (9,'1009LCR');
    
    Insert into table1(tablekey,prefix) values (10,'1010LBR');
    
    Insert into table1(tablekey,prefix) values (11,'ABCDEF');
    I'm writing a query that would update the value of column - codedesc (currently Null) of the table1 table: after it is a string of column - table code1 codedesc.

    The logic for the match is, - take - 2nd column of table-codedesc code value and get 2 characters. For example, when the string is - R1 CONTRACTS, the string will be 1. (Select substr ("R1 CONTRACTS, 2, 2) of the double). -Output will be 1.

    Now,.
    Look in table 1 for the 3rd position of the prefix that corresponds to the string returned by the query above. So, if the prefix is '1001PAC', it should look for 2 value of figures from the 3rd position. So, in this case it will be 01. Digitally 01 and 1 are equal, then the match is found for this line in the table1 table, so we will need to update the value of the column codedesc with the "contracts of R1.
        tablekey,    prefix            codedesc    
    ---------- ------------------------------------------------------------
    
          1               1001PAC     R1 CONTRACTS    -- Needs to be update with this value. 
          2               1001MXT     R1 CONTRACTS
          3               1002PAE      R2 CONTRACTS
    ...
          11             ABCDEF                                --Null ( No Need to update when no match found).
    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Appreciate your help.

    Hello

    You want to avoid TO_NUMBER, given that will cause an error if even a line has a number no (except space) in the wrong place.
    Use RTRIM to remove extra spaces at the end of the match_key and LPAD to add '0', if necessary, at the beginning:

    MERGE INTO     table1          dst
    USING   (
              SELECT  LPAD ( RTRIM ( SUBSTR ( codedesc
                                     , 2
                                   , 2
                                   )
                              )
                         , 2
                         , '0'
                         )          AS match_key
              ,     codedesc
              FROM     code1
         )               src
    ON     (src.match_key     = SUBSTR ( dst.prefix
                           , 3
                         , 2
                         )
         )
    WHEN MATCHED THEN UPDATE
         SET     dst.codedesc     = src.codedesc
    ;
    

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

  • Why can't I create an email address with the word "mail" in there?

    Why can't I create an e-mail address that contains the word "mail" in there? I want my real name as my user name and my name has the word "mail" in there

    original title: sign up for problems

    Hotmail.  I want her to be an address @hotmail.com

    Hello

    I'm sorry, but we cannot help with hotmail problems in these forums in response to vista

    Please repost your question in hotmail in the hotmail link below forums

    http://windowslivehelp.com/product.aspx?ProductID=1

    Forums
     
     

  • Impossible to change the IP address with the local/system tool is taken automatically configured IP who has not had before

    Hello

    Today, I have the different situation:

    Sequence:

    We have 25 systems in the field with 2 links from different suppliers and working with BIO metric access. Suddenly admin changed the router's IP and network IPs to switch different range when he requested the change IPs newly given according to IP configured in router and switch. 5 systems I changed the static IP in all systems through the local administrator and tried to connect by using access biometric .i found only 10 systems took the static IP and the rest of the systems did not the. I tried thanks to rinse / renew / other commands and methods varied, but he was not taken at last I checked ipconfig and found that the ststus autoconfiguration IP service: 192.164.152.58 such as that not given earlier. After changing in ok and properties ipv4. So again see properties ipv4 value if you change the different value, but ipconfig shows that I never gave other PIS .NO updates are installed in the system. I know is questions.

    Note *: when using images of backup IP address is accepted and works fine

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • Scroller component works only with the component TabbedViewNavigator (Flex Mobile)

    INSTALLATION PROGRAM:

    -L'application itself is a MobileApplication, not TabbedMobileApplication.

    -One of my pages/views (we'll call it "TabbedPage") includes the TabbedViewNavigator component, which asks the other two pages/views in my "views" folder We'll call it "TabbedPageOne" and "TabbedPageTwo"; other pages in the application are just regular pages with components on the stage, including a page which also includes the Scroller component, which works without a hitch.

    -TabbedPageOne integrates a Scroller component (follow-up of a VGroup component as required) who is forced to the entire screen (left, right, up and down all equal '0').

    -At the time of execution (on my desktop and device), when I navigate to the page of TabbedPage - of TabbedPageOne & TabbedPageTwo - Scroller component does not scroll.

    -Sidenote: I filled out the page of components such as the buttons and labels to fill the page to the point of activation of scrolling, and much that the buttons were still in operation (which means that they always respond to touch events), the wheel still did not work.

    Is there something I'm missing or doing wrong, or is - a problem in Flex?

    Your help would be greatly appreciated!

    Try to set the width = "100%" height = "100%" on the ViewNavigators:

  • Is the uiscrollbar component for use with the text fields only

    Is the uiscrollbar component for text only fields?

    Yes, this isn't in the library, you must call using code.  It is documented in the help files, even if, which should help to get you into use.

  • How to address with the names of many books?

    I come from Mozilla Thunderbird to replace Eudora and I got 15 different address books with names like 36 in some address books. I need to recreate these address books and can not determine how to do this on my own.

    There is an article in support of Thunderbird which can help you.

Maybe you are looking for

  • Scrolling glitches

    Every time I post something, before preview, I try to paste the text in my box of text on the Clipboard, because I have learned from past experience that otherwise puts me at the risk of losing what I typed. When I use control-home & control-end know

  • Xbox LIVE Update, Public Beta Dashboard - missing product key

    I am registered for the Xbox LIVE Update Public Beta Dashboard. The system crashed when you browse for a product key. I tried to return to this screen since then and I am told that no keys exist. How can I get my code/key or a new one?

  • Media Player isn't plau HD movies

    original title: why my media player 11.0.6002.18311 version will not play hd movies? I need to download codecs to play most? My Media Player does not show hd movies. What I need to download codecs more to make this happen?  

  • new hard drive cover

    Hi all, my pavilion laptop g6 died just one year and 2 weeks after purchase. Guaranteed not valid and that it was the hard drive bought a new identical to the former. Question is old it has a black sticky coating covering the green part and is not ne

  • trying to install win 7 pro on a second drive hard withwin 8 on the first hard disk

    I have a pc with win 8 is installed on the primary drive. I bought a win 7 pro os to install on a second disc. (I bought a new pc after my old win xp but I have a little fuzzy) I formatted the second hd as a gpt in 8 victory drive and when I go into