Can I create "variable array"?

Is it possible to create an array of variables? Eg. if I have to 10 boolean control, called Switch1, Switch2... Switch10, and I need to switch one of them to ON, but which one to switch on depends on different situation. Say, at situation A, I need to switch on Switch3, then at situation B, I need to switch on Switch5, etc. Can I write just one command, with the switch number as the input, so that it can switch on different boolean control (Switch#) at different time? (i.e. treating the variables Switch1 to Switch10 as an array of variables called Switch#).
BTW, this question was asked by another LabView user in 2000, but there hasn't been a satisfactory anwer.

I can think of one way off the top of my head, but it suffers from some fundamental flaws, and I'm not entirely familiar with the functions involved, so it may not work!
The solution:
It is possible to open a reference (using the Open VI Reference) to the VI being run. From there, it is possible to obtain a reference to all of the controls on the front panel using property nodes. Using these references, it should be possible to set the properties of the controls.
The flaws: It's complex, it's large overhead, and it's virtually impossible to maintain.
I've run into the same problem before with controls embedded in tab controls, since buttons on two different tabs cannot belong to the same cluster or array. I have yet to see a solutio
n that I like.
Perhaps someone else out there has seen a good solution for this one? Or maybe NI will bite the bullet and implement heterogeneous arrays and "virtual" clusters (clusters who's front panel objects are not spatially associated
Sorry I can't help more.

Similar Messages

  • Is it possible to/how can I create an array of arrays in Labview 6i?

    I am trying to create a data structure based on a tree where each limb is an array of arrays and each of those arrays is an array of arrays...etc. My ultimate purpose of this is for multidimensional (infinite) data saving/data recovery.

    I suspect it won't work for your intended application, but here is an answer to your question:
    You can't create an array of arrays, because that would be the same as increasing the number of dimensions of the array. However, you can store an array in a cluster, then have an array of clusters with arrays in them. So, indirectly it is possible. This gives you the possibility of each array being a different size.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How can I create a array with all files from a directory

    How can I create a array of files or varchar with all files from a directory?

    I thought the example could be improved upon. I've posted a solution on my blog that doesn't require writing the directory list to a table. It simply returns it as a nested table of files as a SQL datatype. You can find it here:
    http://maclochlainn.wordpress.com/2008/06/05/how-you-can-read-an-external-directory-list-from-sql/

  • Can we create variables(prompts) on Key figures in Bex(SAP-BW/BI).

    Hi,
    Can we create variables on key figures, If yes,Please let me know the process step by step.
    My requirement is we have key figures Supply Elements(SE) like purchase order,production order,planned order etc and Demand Elements(DE) like Deliveries,Sales order etc. All these Key figures are dragged and available in Rows.
    Now my clients wants variables on SE and DE.
    For SE  & DE = Variable type is OPTIONAL and Variable input value =LIST VALUES.
    Can any one help me on this.
    Your Effort will be Valued.
    Regards,
    Krishna.

    Hi Kamal,
    These are the Keyfigures with Data type QUAN with unit:0BASE_UOM.
    Under :
    SE - Purchase Req (ZSEOOPR),Purchase Order(ZSEOOPO),Production Order(ZSEOOPRQ) Etc..
    DE-Safety Stock(ZDESS),Sales Order(ZDESRSO),Deliveries(ZDESRD) Etc..
    In column it has structure which displays the month of Jan-Dec.
    The output of the report  snapshot attached
    Now my client requirement is
    S8e
    Demand Elements
    No
    Text
    N/A
    N/A
    N/A
    N/A
    Yes
    Optional
    List Values
    Default to All
    S8e
    Supply Elements
    No
    Text
    N/A
    N/A
    N/A
    N/A
    Yes
    Optional
    List Values
    Default to All
    Regards,
    Krishna.

  • Can't create variable

    Hi experts,
    In our Bex query designer, I am not able to create any variables. There are some existing variables there in the query but I just can't seem to modify them either (we took over the project from another company). Does it have anything to do with query locking?
    I have S_ALL och reporting profiles so I should have enough authorization for this.
    Any help is appreciated.
    regards,
    Yoon

    Hi Martien,
    We use APO 3.1/BW2.1C and I think you're probably right. The Bex we have on the other hand is 3.5. So when right-clicking on a characteristic as you mentioned, I get only 'Refresh' and I don't have the New Variable option at all in the query designer.
    I can't find anything in RSA1 that could be used for creating/maintaining variable. You have any idea?
    Some old SAP documents mention about creating variable via Business Explorer ® Maintain Variables. But I can't find this link at all, neither in AWB nor in Bex.
    regards,
    Yoon

  • Can't create float array with a variable name as size parameter?

    Hi,
    When trying to compile code that users a variable in the array subscript to set the size, CC gives the following error:
    Error: An integer constant expression is required within the array subscript operator.
    1 Error(s) detected.The code is as follows:
    int main()
    //blah blah
    const int arrSize = numberVariables;
        float tempArr[arrSize];
    //blah blah
    }Output from CC -V:
    unknown% CC -V
    CC: Sun C++ 5.9 SunOS_i386 Patch 124864-01 2007/07/25Output from uname -a:
    unknown% uname -a
    SunOS unknown 5.10 Generic_137138-09 i86pc i386 i86pcAny ideas on why CC is giving that error?
    ~Slow
    Edited by: SlowToady on Nov 15, 2008 8:28 PM
    Edited by: SlowToady on Nov 15, 2008 8:36 PM

    Marc_Glisse wrote:
    Last time I checked, I did not see VLAs in the draft of the next C++ standard, which I believe is now feature complete. So either I missed it (quite possible) or VLAs were considered a bad idea (for C as well many people consider alloca and VLA bad ideas). It is however a very reasonable extension to have (care to file a RFE?).The following code performs like this on an IBM x366 with 4 single-core 3.16 GHz Xeons, running OpenSolaris build 96:
    -bash-3.2$ ./thrtest
    malloc() took 440895924 ns
    alloca() took 2122522 ns
    -bash-3.2$Using alloca is two hundred times faster.
    Two hundred times faster.
    Think about that next time some pedant says alloca "sucks".
    Try for yourself. Here's the code:
    #include <stdlib.h>
    #include <pthread.h>
    #include <alloca.h>
    #include <strings.h>
    #include <stdio.h>
    #define NUM_THREADS 8
    #define ITERS 10000
    #define BYTES 1024
    typedef void ( *mem_func_t )( void );
    void alloca_iter()
        char *ptr;
        ptr = ( char * ) alloca( BYTES );
        memset( ptr, 0, BYTES );
        return;
    void malloc_iter()
        char *ptr;
        ptr = ( char * ) malloc( BYTES );
        memset( ptr, 0, BYTES );
        free( ptr );
        return;
    void *thread_proc( void *arg )
        mem_func_t mem_iter;
        mem_iter = ( mem_func_t ) arg;
        for ( int ii = 0; ii < ITERS; ii++ )
            mem_iter();
        return( NULL );
    int main( int argc, char **argv )
        pthread_t tids[ NUM_THREADS ];
        void *results[ NUM_THREADS ];
        hrtime_t start;
        hrtime_t end;
        int ii;
        start = gethrtime();
        for ( ii = 0; ii < NUM_THREADS; ii++ )
            pthread_create( &tids[ ii ], NULL, thread_proc, malloc_iter );
        for ( ii = 0; ii < NUM_THREADS; ii++ )
            pthread_join( tids[ ii ], &results[ ii ] );
        end = gethrtime();
        printf( "malloc() took %ld ns\n", end - start );
        start = gethrtime();
        for ( ii = 0; ii < NUM_THREADS; ii++ )
            pthread_create( &tids[ ii ], NULL, thread_proc, alloca_iter );
        for ( ii = 0; ii < NUM_THREADS; ii++ )
            pthread_join( tids[ ii ], &results[ ii ] );
        end = gethrtime();
        printf( "alloca() took %ld ns\n", end - start );
        return( 0 );
    }

  • Can't create raid array in 10.4.6

    I am trying to create a mirrored raid array with two Fantom USB 2 external harddrives using disk utility.
    I am unable to drag the image of any hard drive into the right window and the create button is never activated.
    I have restarted, verified the disks and so on. I hve tried to select a different external disk but that won't work either.
    Any ideas what's up.

    You can try updating the drivers from the makers site, but it could be that Apple won't allow USB drives to RAIDed.
    Unless your recording ET or something where a hard drive failure could mean disaster, mirrors are not ideal form of backup.
    Consider auto-cloning and auto-backup software like DeJaVu or Retrospect.
    What this will do is give you the benefit of time, cloning will "clone" a whole boot drive and make it bootable in case you need it. (You can clone a whole non-boot drive as well.) Auto-backup will copy user type files and folders, but it's not designed to copy a OS from one drive to another.
    http://www.apple.com/downloads/macosx/systemdiskutilities/dejavu.html

  • Can't create an array of WebBrowser​s

    I drop an array constant down (and I tried this with a cluster also) and I try to add a WebBrowser into it but it won't take it.  The web browser is in the .Net and ActiveX pallete - if you hover over it, its type says SHDocVw.IWebBrowser2.  I was hoping to have an array of webBrowsers because (as I've mentioned in numerous other threads) I need to talk via secure (TLSV1) link to numerous radios - each will have a different IP address, and would need their specific html (or xml in some cases) data displayed on its specific browser.  I would then process that radio's specific data.  I could probably create X (upto 32) instantiations of my EXE (that currently has one webBrowser), but that seems extremely difficult to manage.  I did see that I can have a tab control with numerous tabs (say 32) and have a web browser on each.  I currently (for one webBrowser) get its Document property, its body, then its inner text, and if that string length is > 0 then there is something there.  This isn't a very reliable method of detecting a message has arrived, so I'm open to suggestions.  Regardless, I would need a way to know which of my 16 (or maybe 32) web servers received data, and process that message accordingly.   I thought of somehow incorporating an object-oriented approach such that everytime a new radio was desired, a new object would be created to support all its properties/methods - this is somewhat uncharterd territory, however.

    Hi mrbean,
    instead of creating a lot of instances of your program, you can create a vi template with one activex browser in it and create as many instances as you need.
    Hope it helps.
    Mike

  • Please help - I can not create large arrays of images (no more than 108 elements)

    Hello,
    I am working in an application where i acquire 300 high resolution images (3Mp) and then i process each of those frames.
    When i try to put alll those frames in one array of images, the system does not let me more than 108 elements. There is no such message like out of memory or memory error. It is just that when i visualize the array of images, there are good frames the first 108 elements, and then white frames the rest of the elements.
    Ideallically i would prefer to process frames as i am acquiring them, but i am concerned about the remaining processing time for the rest of the tasks.
    Then, as an alternative, I have tried to store frames in two shorter arrays, and i ended up observing that when the first array (say 50 elements) is full and the second array starts (another 50 elements for example), labview needs a certain time in the the middle (like three seconds between closing first array and starting acquiring on the second array). If i dont wait that time between arrays, both arrays contain the same information. I know, this is weird, and i know about the fact of passing information by reference on imaq images. 
    The most interesting thing is that when i reduce considerably the resolution of the image (say that now, instead 3Mp they are 2Mp), the maximum number of elements on the arrays are exactly the same: 108, so this makes me wonder if it is a memory constrain. And the code is fairly simple, there is no way that i am cutting the acquisition at the number 108.
    So my question is, How can i put 300 frames in one just one array? or How can eliminate the time i have to wait between arrays?
    I have heard about memory allocation and so, but i am not sure how to proceed. I have windows 7.
    Thanks in advance,
    Roberto

    It's hard to visualize.  Please post the code - or at least a shell representing your code - so we can see what is happening.  Are you sure you are getting 108 contiguous pictures, or are some aquisitions being skipped?  Is the first picture in the array the first aqcuisition?  Is the last picture the last acquisition?
    I really don't think it is about memory allocation.  I think it could be about your method of acquiring and processing said acquisitions.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How can I create sub-arrays based on the positions of indicies in a separate index array?

    Please forgive me if this question is basic or obvious. I am fairly new to LabVIEW and I'm trying to learn as I go along.
    I have a 1D array of index values (the number of possible index values is not fixed, but can vary between uses of the application; it could be just {0, 1} on one day and {1, 5, 11, 678} on another) and a 1D array of measurement values (doubles). I'd like to parse the measurement values into sub-arrays for each index, so that if my index array was:
    [0 1 1 1 1 5 5 0 5 5 1 0 1 1 5]
    and my measurement array was:
    [0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.10 0.11 0.12 0.13 0.14 0.15]
    I would get back 3 sub-arrays:
    [0.1 0.8 0.12]
    [0.2 0.3 0.4 0.5 0.11 0.13 0.14]
    [0.6 0.7 0.9 0.10 0.15]
    I know there must be a simple way to do this, I guess I'm just stuck too much in matlab-array thinking to figure it out... please help!
    -- jph
    Solved!
    Go to Solution.

    jamespherman wrote:
    Thus, I figured it might be possible to generalize this idea and send multiple sets of XY values to an XY graph.
    OK, all we need is a trivial modification of what we already have. XY graph data is easiest handled using complex data. Here's a quick rewrite. See if this works for you.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SplitInGroupsGraph.vi ‏14 KB

  • Can we create an array as a button?

    I konw that my subject is not really clear....
    I have files names in an excel project. I want to display all of this files like a button in the aim to open one, considering to files inside the excel file:
    For instance : if I have 3 files : file1, file2, file3 the VI does a menu button with ONLY 3 solutions: file1, file2, file3 to permit to the user to clic on one of this 3 files.
    Is it possible?Message Edited by ramiral on 04-26-2005 04:50 AM
    labview 7.0

    copied from labview manual:
    Use the Property Node to get and set various properties on an application
    or VI. Select properties from the node by using the Operating tool to click
    the property terminal or by right-clicking the white area of the node and
    selecting Properties from the shortcut menu.
    You can read or write multiple properties using a single node, however
    some properties are not writable. Use the Positioning tool to resize the
    Property Node to add new terminals. A small direction arrow to the right of
    the property indicates a property you read. A small direction arrow to the
    left of the property indicates a property you write. Right-click the property
    and select Change to Read or Change to Write from the shortcut menu to
    change the operation of the property.
    The node executes from top to bottom. The Property Node does not execute
    if an error occurs before it executes, so always check for the possibility of
    errors. If an error occurs in a property, LabVIEW ignores the remaining
    properties and returns an error. The error out cluster contains information
    about which property caused the error.
    If the Property Node opens and returns a reference to an application or VI,
    use the Close Reference function to close the application or VI reference.
    LabVIEW closes control references when that reference is no longer
    needed. You do not have to explicitly close control references.
    Implicitly Linked Property Nodes
    When you create a Property Node from a front panel object by
    right-clicking the object and selecting Create»Property Node from the
    shortcut menu, LabVIEW creates a Property Node on the block diagram
    that is implicitly linked to the front panel object. Because these Property
    Nodes are implicitly linked to the object from which it was created, they
    have no refnum input, and you do not need to wire the Property Node to
    the terminal of the front panel object or the control reference. Refer to the
    Controlling Front Panel Objects section of this chapter for more
    information about control references.
    if you still don't get it, i suggest that you read the labview manual, or parts of it and take a look at a few example's supplied by labview

  • Can someone help me in creating an Array for the following?

    Hi this is a flash banner done using AS3 but it is giving me bugs when published, can someone please look at the the following link http://webtemp2.idm.net.lb/alamflash/home.html 
    and below is the script, can i create an array?
    stop();
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    mc_animation.mc_scaffold.buttonMode = true;
    mc_animation.mc_prop.buttonMode = true;
    mc_animation.mc_ladder.buttonMode = true;
    mc_animation.mc_tower.buttonMode = true;
    mc_animation.mc_trade.buttonMode = true;
    ///////////////////// start ///////////////////////////////
    new Tween (mc_animation.mc_scaffold,"y", Elastic.easeInOut,-300,3,1.5,true);
    new Tween (mc_animation.mc_prop,"y", Elastic.easeInOut,-300,3,2,true);
    new Tween (mc_animation.mc_ladder,"y", Elastic.easeInOut,-300,3,2.5,true);
    new Tween (mc_animation.mc_tower,"y", Elastic.easeInOut,-300,3,3,true);
    new Tween (mc_animation.mc_trade,"y", Elastic.easeInOut,-300,3,3.5,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,-300,15,1,true);
    /////////////////////// scaffolding ////////////////////////////
    function scafoldinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_scaffolding,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_scaffold,"y", Elastic.easeInOut,-300,30,6,true);
    function closescafoldinfo(e:Event):void {
    new Tween (info_scaffold,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_scaffolding,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_scaffold.addEventListener(MouseEvent.CLICK,scafoldinfo);
    info_scaffold.btn_close.addEventListener(MouseEvent.CLICK,closescafoldinfo);
    ///////////////////////////////////////////////// propping///////////////////////////////////////////////////////////
    function proppinginfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_propping,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_proping,"y", Elastic.easeInOut,-300,30,6,true);
    function closeproppinginfo(e:Event):void {
    new Tween (info_proping,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_propping,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_prop.addEventListener(MouseEvent.CLICK,proppinginfo);
    info_proping.btn_close.addEventListener(MouseEvent.CLICK,closeproppinginfo);
    //////////////////////////////////// Ladders //////////////////////////////////////////////////////
    function laddersinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_ladders,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_ladders,"y", Elastic.easeInOut,-300,30,6,true);
    function closeladdersinfo(e:Event):void {
    new Tween (info_ladders,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_ladders,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_ladder.addEventListener(MouseEvent.CLICK,laddersinfo);
    info_ladders.btn_close.addEventListener(MouseEvent.CLICK,closeladdersinfo);
    //////////////////////////////////// towers //////////////////////////////////////////////////////
    function towersinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_towers,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_tower,"y", Elastic.easeInOut,-300,30,6,true);
    function closetowersinfo(e:Event):void {
    new Tween (info_tower,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_towers,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_tower.addEventListener(MouseEvent.CLICK,towersinfo);
    info_tower.btn_close.addEventListener(MouseEvent.CLICK,closetowersinfo);
    //////////////////////////////////// trading //////////////////////////////////////////////////////
    function tradinginfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_trading,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_trading,"y", Elastic.easeInOut,-300,30,6,true);
    function closetradinginfo(e:Event):void {
    new Tween (info_trading,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_trading,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_trade.addEventListener(MouseEvent.CLICK,tradinginfo);
    info_trading.btn_close.addEventListener(MouseEvent.CLICK,closetradinginfo);

    I am afraid this is undocumented usage of Tween class. According to the class documentation one needs to create instances of Tween. Since there are no explicit instances - I suspect that one Teen is overriding another or, perhaps, is not getting instantiated all together.
    So, the documented usage is:
    var tween:Tween = new Tween()
    Not just new Tween()
    Re: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/transitions/Tween.html
    I also would suggest you look into TweenLite or TweenMax classes - they are much more compact, easier to use and accommodate several properties tweening in one swoop.

  • Can I create a dynamic number of inputs during runtime?

    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID               NUMBER                (This will be the primary key)
    TBL_FILE_NAME          VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID               NUMBER               (This will be the primary key)
    TBL_FILE_ID               NUMBER                (This will be the forign key to the file table)
    TBL_META_COLUMN     VARCHAR2(30)     (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE          VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    Other things to note is that we would like this to be on a single page.
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.

    Welcome to the Oracle Forums !
    >
    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID NUMBER (This will be the primary key)
    TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID NUMBER (This will be the primary key)
    TBL_FILE_ID NUMBER (This will be the forign key to the file table)
    TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    >
    Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
    >
    Other things to note is that we would like this to be on a single page.
    >
    The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
    >
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    >
    If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
    >
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    >
    Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
    >
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.
    >
    I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
    Regards,

  • How to create variables at runtime

    Hi,
    I need to know how can i create variables at runtime.
    or is their anything like array that we create in 'C' if yes . how can i define its size at runtime.
    Thanks,
    Dev.

    In forms, either record groups or pl/sql tables of records give similar functionality to an array. You have full programatic control of either but with completely different syntax. Record groups integrate well with certain forms built-ins and features (eg LOVs and Tree items). PL/sql tables integrate well with other pl/sql such as stored procedures. Unlike an array, a pl/sql table may be SPARSE (index numbers need not be sequential), and UNBOUNDED (no need to declare the number of rows).

  • How to create variable in BEx on a Nav Attribute?

    Hi All,
    We are creating a report on Master data object 0MILESTONE. 0PROJECT is the navigational attribute of 0milestone.
    and ZSTATUS is the navigational attribute of 0PROJECT.
    Requirement is to create variable on ZSTATUS in BEx. How do I do that? I dont see option of creating variable on Nav attribute of a Nav attribute.
    Regards,
    Bob

    Hi,
    There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
    In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
    [http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM

Maybe you are looking for

  • BAPI_PO_CREATE1 - Service order Creation

    Hi, Im trying to use BAPI_PO_CREATE1 to create service orders using the test run in ECC6 but the return table shows an error 'Please maintain Services or limits' . With the same values i'm able to create a service order by running the transaction onl

  • Fios external 2TB drive filled up, now no access to it

    I've been running my fios with external 2TB for 2 years now.  After letting it get to 100% full ( in the DVR section of the menus where it shows space used ) by accident, I can now no longer see anything that is stored there.  I see that the set is r

  • ANM object-group

    Object-groups created with the CLI don't appear in the ANM Config>Devices>Security>Object Groups as they should and ACLs using these groups are displayed incorrectly. SYNC and upgrading to ANM v2.1 hasn't resolved the issue. Object-groups created wit

  • HTML applet and JAVA command

    hi, i have a problem that i can not solve.... i can execute my code in typing javac Myclass.java and then i type java Myclass then my game is running very well. but when i put all my classes in a HTML page it does not work. I see my class being charg

  • Using iPhone as bedside clock

    Is there a bedside night clock that will disable the phone,text,alerts at night?