IF ELSE [so] [empty]

Hello people. I need help to find this problem.

The program entry is an array of strings. and is designed to perform the following operations:

for each element of the array, check if the string begins with "$GPRMC".

If this is true, then process the data and spit a calculated value from the string.

else, zero (i.e.: do not generate an output value because it spoils the calculations)

I have attached a simplified version of the real VI. [I'm running on 8.2]

Here is a version 8.0.

Tags: NI Software

Similar Questions

  • Creative cloud office is empty

    My desktop creative cloud application is completely empty outside of the header. There is a gear icon that shows only helps, pine and Quit that everything else is empty. This happened the day after if I don't know exactly what happened at the start. I tried the start and stop CC, restart windows and reinstall same CC. No change. Any ideas.

    Problem solved.

    I've restored my Windows system to a good state known a week ago. CC immediately updated itself and gave the possibility to update PS which took place without incident. I still don't know what caused the problem, but at least he disappeared.

    Thanks for your help.

    Keith.

  • My printer is not printing things on internet and Epson says its my browser. Can you help me?

    Of nowhere, my printer started to print things off the internet extremely small. The printer copies and prints of my Microsoft Word file things very well. I called Epson and they said it was a browser issue and I have no way to communicate directly with Mozilla, which is very frustrating. I started to go back to school and desperately need my printer to work. Someone wanted me to pay $106 yesterday to fix the phone and I just can't afford it. Can someone help me?

    The reset of the printer mentioned above may already have solved the problem, but as a follow-up in case it didn't, when you say that the page is not centered, do you mean Firefox is only using a portion of the page and leave everything else is empty? This can occur when Firefox has the information of bad paper size for your printer. Reset the saved data for your printer usually decides that.

  • loads of my facebook but indicates that the toolbar.

    I have the white screen of gat e when I load up facebook, but only on my laptop. The toolbars are at the top, but everything else is empty. I can access it with the log https on but then when I click on a link or my profile, I just get the same blank pages.

    Hi duncanroe,

    Have you looked at the Knowledge Base article, the problems with some Facebook games, chat and more? There is much good in this troubleshooting information. Please don't forget to try all the suggested steps. Each one is precious and can be the answer to your question.

    Hope this helps!

  • [BUG] TestStand 2013 receives corrupt data to LabVIEW adapter if the cluster contains waveform array

    Hi all

    I am having trouble with the corruption of the data. My minimal test case is below.

    I have a VI that returns an array of clusters. My TestStand sequence simply call this VI and connects to its output:

    When I run the (with my open VI) .seq file, I can see the update of the Panel before LabVIEW with expected values:

    However, TestStand receives all these values. Waveform bays have the correct values, but everything else is empty / null:

    If I delete my typedef waveform table, all elements of the cluster are correctly registered by TestStand.

    I've attached an example of test (2013 TestStand, LabVIEW 2013) case.

    Any ideas on how to make it work?

    Hey JKSH,

    Thanks for the detailed on this report. I looked into it a little bit last week.

    I think that it is closely related to the 206892 of CAR, which describes a problem where data will not appear on the report unless a property or variable is specified for the output waveform parameter. However, this does not completely cover your case, because you see incorrect digital data in the row with the waveform of your cluster. I filed 462209 CAR for that matter, and we will investigate it more thoroughly.

    This problem only affects data that appears "below" the waveform in the cluster. In the case of the sample, if you put the waveform as the last element of the bunch, I think that it works correctly. I know that your real data could be more complex than this example, but this workaround solution would help in the meantime? You could also consider separating the waveform of the rest of the data, that would probably work too.

    As I said, please let us know, and it is classified in our system now for a developer to investigate the matter. Please let me know if solutions are not appropriate for your application, we would be happy to know a little more about your overall use case order to work around the problem.

  • The task manager has different headings

    I use Vista OS.  I opened my task manager, but instead of the usual information, it has different sections.  On the top line, section 1 says "User".  As such, it shows my user name.  Section 2 says "I.D." as such, it has a 1.  Section 3 says 'Customer name'.  It's empty.  Section 4 says "Session".  As such it is said 'Console '.

    The bottom line has a choice to 'disconnect '.  Another choice for 'logoff.  A third said choice 'send message '.  This topic is low and will not let me click on it.  There is no 'x' in the upper right corner to close it.  Everything else is empty.

    I tried to unplug, then restart your computer.  Then I disconnected and restarted.  She will not close unless I restart, and then not use it again.

    I've updated everything keep and my anti-virus is clear.

    Any suggestions?

    Hello Winniethepoo,

    Simply double-click anywhere in the upper part of the window Task Manager will bring back your borders and tabs. Make it a great day!

    "In the end, the love you take, is equal to the Love You Make"

  • What are the precision of the numbers in the function properties of Windows Explorer?

    I thought buy a SSD to use as my system disk. During these days, I look at the size of my installation of W7 more other software etc on my C drive and I have shown that I used 79 gb and you have 81 GB spare. I looked at that several times over the last few days and I'm quite sure that's what I saw.

    This morning I installed a scanner on the same PC, as well as the software to use it. Naturally, I wondered how that had added to the used space on the C drive. But when I checked using the Explorer, the figures now are 76.9 GB used, 83.4 GB free. I must say that I have installed, uninstalled anything else or emptied the folder recycle.

    So, what happens, and how much can we trust those quoted in the property browser?

    You can run the Disk Cleanup Wizard and check the 'system' files and it which will remove and temp files, etc.

  • data transfer between disks

    I recently had my WD 500 GB hard drive go bad. The Restore screen would not work. Start-up and adjustment menus worked, but nothing else. Empty windows screen would come, but I could not connect (windows would not start). I have a HP pavilion a6337c.  I took it to Best Buy to run a diagnostic on it. They said that the hard drive was bad. So I bought another hard drive, but I have stuff on my old that I want to transfer to the new drive. I hooked up the old drive with a SATA cable on the motherboard and used the power cord for the dvd player to power the old drive. The new drive works fine. But I don't know how to transfer data from the old disk or to register information on the new disk.  I also have a screen popped up saying the old driver installed successfully and requies a reboot. I don't know what to do next! If I restart it it will mess up to my new hard drive?

    Thank you very much!  I used Skydrive and it does the job!

  • The Windows 7 Start Menu search / indexing nothing works! Tried everything!

    OK Ive spent countless hours of research on this question, ive tried many "bugs" that did not work at all. I have Windows 7 Ultimate 64 - bit Edition and here is my problem:

    The search for the Start Menu in windows 7 does not show ANYTHING when I type something to search for. No category, no file, no folder, nothing. The only thing that appears is "See more results" at the bottom and everything else is empty. When I click on "See more results" I get an error saying that windows cannot find the search query

    WHAT IVE TRIED:

    Ive tried to rebuild the index - always says 0 indexed items and NEVER changes, Ive tried to manually change the location of the index, same result

    Ive tried deleted manually the former location of the index, stop the search function, from the search function (both in the options and in regedit), restart the computer and still nothing.

    Ive tried Backing removed all find Regkeys, stop manually search in the command prompt, location of the Delete index into the command prompt, restart the search function in the command prompt.

    Ive tried to do an in Place Upgrade / repair installation of Windows 7 but he's always said his failure and returned to my current installation of WIN7

    Ive double checked to ensure that all my regkeys have the correct values and I have all the correct regkeys

    After all that, nothing WORKS STILL! -Yes research is Active, yes the file indexing and drive is chosen correctly, and yes the Search Options for files and folders ARE set up.

    Ive seen 3 other emails of Micrsoft argue that users have posted, some people say it arranges, it does NOTHING for me. I always have this problem.

    Please, please help me with this, if anyone can help me, you have no idea how much I appreciate it!

    I don't know what caused it, but this problem fixed the original problem and you describe for me:

  • Query the parameter validation

    Hi all

    I need help to create a validation setting.

    I assigned a parameter in planning property HP. SourcePlanType making it a derived property type.

    i, e

    If ((Equals (String, ABBREV (), ABC), IsNodeBelow (ABBREV (), ABC)), however, Plan1

    If (or (Equals (String, ABBREV (), XYZ), IsNodeBelow (ABBREV (), XYZ)), 2,)

    If (or (Equals (String, ABBREV (), MNC), IsNodeBelow (ABBREV (), MNC)), plane3,)))

    which means that any node or less ABC, XYZ, MNC must give Plan1, Plan2, plane3 value for this property, or else an empty value.

    I want a custom validation to run on this property, and when a user attempts to assign a value to the node equal to or lower than ABC, XYZ, MNC exception Plan1, Plan2, plane3 it should give a validation error.

    Thank you

    Madhu

    It must have worked...

    However, try this for your validation - a small modified form of TI-

    If)

    (OR)

    Equals (String, ABBREV (), TOTAL_ACCOUNT_IS),

    IsNodeBelow (Abbrev (), TOTAL_ACCOUNT_IS)),

    Equals (String, PropValue (Custom.test), Plan2),

    If (OR)

    Equals (String, ABBREV (), TOTAL_ACCOUNT_BS),

    IsNodeBelow (Abbrev (), TOTAL_ACCOUNT_BS)),

    Equals (String, plane3 PropValue (Custom.test)),

    If (OR)

    Equals (String, ABBREV (), TOTAL_ACCOUNT_DS),

    IsNodeBelow (Abbrev (), TOTAL_ACCOUNT_DS)),

    Equals (String, PropValue (Custom.test), plan1), true)))

  • check the depth of the HBA q

    Following the instructions of 1267 KB: VMware KB: change the depth of the queue for Brocade HBA QLogic and Emulex chains of command to change the queue depth queue unit logic of the HBA number listed, as well as the string to verify your changes.

    When you try to check for recent changes to the queue depth using the command, I'll have nothing else to empty values in the output upward.

    Here's him copy / paste of KB:

    Run this command to verify that your changes have been applied:

    # esxcli system module parameters list -m driver

    Where driver is your module driver adapter Emulex, QLogic and Brocade, such as lpfc820 , qla2xxx , or bfa .

    The output looks like:

    Name                        Type  Value  Description
    --------------------------  ----  -----  --------------------------------------------------
    .....
    ql2xmaxqdepth               int   64     Maximum queue depth to report for target devices.

    HOWEVER - I get no return values, the example in the watch 64 KB, but when I run the command on my hosts, it is empty.

    Is this a new bug?  does anyone know another way to retrieve the values?

    Most likely you see not all outuput, could be due to the drivers PROVIDED with Windows.

    Run the command and check the device queue depth value = 0x40, which will be the HEXADECIMAL value

    / usr/lib/VMware/vmkmgmt_keyval/vmkmgmt_keyval - a

  • Dynamically apply the color to the lines of Table

    Hello

    I use JDeveloper - 11.1.1.6.0 version

    I have a requirement to apply the background color for rows in the table dynamically.

    In the table, I have a few lines with a checkbox.

    When I select the checkbox of the line, the line selected as well as lines before and after the selected line should be displayed with a background color.

    Please let me know of inputs for this question.

    Thank you
    Ravi

    Hello

    You can do this by surrounding components of the cell (outputText, inputText, checkBox etc) with for example a panelLabelAndMessage component. Then on this property of component inlineStyle use EL to refer to a property of the managed bean. The managed bean property can now assess the State of checkbox selection. The part of thing in your question is to say during the rendering of the previous and next row that the checkbox in the line between has been selected. You must find a way to say this. An option would be to apply the logic as below

    JUCtrlHierNodeBinding currentRenderedAdfRow = ... use facesContext --> getApplication --> getExpressionFactory --> createValueExpression to create a handle to the #{row} expression
    Row rw = currentRenderedAdfRow.getRow();
    
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingEntries();
    
    DCIteratorBinding dciterator = (DCIteratorBinding ) bindings.get("Name of iterator used by table ");
    RowSetIterator rsIterator = dciterator .getRowSetIterator();
    
    Row prevRow = rsIterator.setCurrentRow(rw);
    int currRowIndex = rsIterator.getCurrentRowIndex();
    
    Row prevRow = getRowAtRangeIndex(currRowIndex-1);
    Row nextRow = getRowAtRangeIndex(currRowIndex-1);  
    
    //return CSS that colors the background if the following conditions are true
    
    if ( ((DataType) rw.getAttribute("checkBoxAttr")) ||  ((DataType) prevRow .getAttribute("checkBoxAttr")) |  ((DataType) nextRow .getAttribute("checkBoxAttr"))){
    
      //color background returning CSS
    
    }
    
    else{
      return empty string
    }
    

    I wrote this code to the top of my head, to ensure you are looking for null pointers (for example if there is no such thing as a prev-line). Also consider caching the calculation so that it doesn't have to be performed for each cell in a row, but only once per line. For example you can save the color and the line key in a bean managed in scope view and then compare the key with this bean managed before performing the calculation

    Frank

  • Generate page APEX when running?

    Hello

    Has anyone of you has tried to generate an APEX editable form page when running?

    I have about 10 pages that are read by an ASP .NET application which generates HTML pages for these card display datasheet of attribute objects. Let me turn to pages generated, APEX because they are much more pleasant. Is it possible at all?

    TIA

    Best regards, Tamas

    Hi Samara,
    I did it for an internal application and it was a little more complex. So I can't use it as a sample. But what I can do, I can tell you the things you need to know. (I spent weeks for details). If you can do your own thing.

    Here are the few things.

    * How to create a

    To do this, use the APEX_ITEM API

    Examples:

    Text element

     htp.p(APEX_ITEM.TEXT(
                        p_idx=>1,-- This is the ID value used to access the item. So give unique value here
                        p_value=>'MY VALUE',--Value of the item
                        p_size=>30,--Length of the item
                        p_attributes=>'readonly=readonly',--If you wnat to make this read only. Else use empty string
                        p_maxlength=> 40,--Maximum number of characters
                        p_item_id=>'P1_TEXTITEM1',--Name of the item
                        p_item_label=>'text Item:'--Label of the item)
                   );
    

    When you want you can access the highest point value using code below

    APEX_APPLICATION.G_F01(1)
    

    Departure and try this. And cket me know if you need more details

    * If this answer is useful or appropriate then please mark and award points.

  • Persistent problems, image display

    I thought I had already managed to solve this problem, but it doesn't seem to be the case. I have two tilelists items can be moved between and when you click on each item of information and "largeImage" it should appear in the right panel however this works fine in the preview, but when I change to an air application and run it in fact the images are not displayed in the right panel when you click on each element within the tilelists.

    What changes should I make to this code to make it work correctly when modified in an AIR application?

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application

    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "creationComplete ="initprofile1NewsAndSportSO ()"

    >

    < mx:Script >

    <! [CDATA]

    [

    Bindable

    ]

    [

    Incorporate (source ='assets/images/bbcnews_small.png' )

    )]

    public var

    Image1: Class;

    [

    Bindable

    ]

    [

    Incorporate (source ='assets/images/itv_small.png' )

    )]

    public var

    Image2: Class;

    [

    Bindable

    ]

    [

    Incorporate (source ='assets/images/skynews_small.png' )

    )]

    public var

    image3: Class;

    []] >

    < / mx:Script >

    < mx:Script >

    <! [CDATA]

    import

    MX. Collections.*;

    import

    flash.net.SharedObject;

    public var

    profile1NewsAndSportSO:SharedObject;

    private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new

    ArrayCollection([)

    {link:}

    "www.bbcnews.com" , label: "BBC News" , icon: "image1" , largeImage: "assets/images/bbcnews_small.png" , title: "BBC News" , description: "BBC News description will go here"

    },

    {link:}

    "www.itv.com/" , label: "ITV" , icon: "image2" , largeImage: "assets/images/itv_small.png" , title: "ITV" , description: "ITV Description will go here"

    },

    {link:}

    "www.skynews.com" , label: "Sky News" , icon: 'image3' , largeImage: "assets/images/skynews_small.png" , title: "Sky News" , description: "Sky News Description will go here"

    }

    ]);

    private var profile1NewsAndSportaddLinksAC:ArrayCollection = new

    ArrayCollection([)

    {link:}

    "www.bbcnews.com" , label: "BBC News" , icon: "image1" , largeImage: "assets/images/bbcnews_small.png" , title: "BBC News" , description: "BBC News description will go here"

    },

    {link:}

    "www.itv.com/" , label: "ITV" , icon: "image2" , largeImage: "assets/images/itv_small.png" , title: "ITV" , description: "ITV Description will go here"

    },

    {link:}

    "www.skynews.com" , label: "Sky News" , icon: 'image3' , largeImage: "assets/images/skynews_small.png" , title: "Sky News" , description: "Sky News Description will go here"

    }

    ]);

    private function profile1NewsAndSportReset():Sub

    {

    resetprofile1NewsAndSportAC();

    profile1NewsAndSportAddLinksTilelist.DataProvider

    = profile1NewsAndSportaddLinksAC;

    profile1NewsAndSportLinkChoice.DataProvider =

    New

    ArrayCollection ([]);

    }

    private function resetprofile1NewsAndSportAC():Sub

    {

    profile1NewsAndSportaddLinksAC.RemoveAll ();

    for every()var obj:Object in

    profile1NewsAndSportaddLinksFullAC) {}

    profile1NewsAndSportaddLinksAC.AddItem (obj);

    }

    }

    private function initprofile1NewsAndSportSO():Sub

    {

    profile1NewsAndSportSO = SharedObject.getLocal)

    'profile1NewsAndSport '.

    );

    If

    (profile1NewsAndSportSO.size > 0) {

    If

    (profile1NewsAndSportSO.data.profile1NewsAndSportaddList) {}

    if (profile1NewsAndSportSO.data.profile1NewsAndSportaddList! = 'empty' )

    ){

    var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split (',' )

    );

    var profile1NewsAndSporttempAC1:ArrayCollection = new

    ArrayCollection();

    for every()var str:String in

    profile1NewsAndSportaddList) {}

    for every()var obj1:Object in

    profile1NewsAndSportaddLinksAC) {}

    If

    (str is obj1.label) {

    profile1NewsAndSporttempAC1.AddItem (obj1);

    continue

    ;

    }

    }

    }

    If

    (profile1NewsAndSporttempAC1.length > 0) {

    profile1NewsAndSportAddLinksTilelist.DataProvider = profile1NewsAndSporttempAC1;

    }

    }

    }

    If

    (profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList) {}

    var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split (',' )

    );

    var profile1NewsAndSporttempAC2:ArrayCollection = new

    ArrayCollection();

    for every()var str2:String in

    profile1NewsAndSportchoiceList) {}

    for every()var obj2:Object in

    profile1NewsAndSportaddLinksAC) {}

    If

    (str2 is obj2.label) {

    profile1NewsAndSporttempAC2.AddItem (obj2);

    continue

    ;

    }

    }

    }

    If

    (profile1NewsAndSporttempAC2.length > 0) {

    profile1NewsAndSportLinkChoice.DataProvider = profile1NewsAndSporttempAC2;

    }

    }

    }

    on the other

    {

    profile1NewsAndSportReset();

    }

    }

    private function saveprofile1NewsAndSport(event:MouseEvent):Sub

    {

    var profile1NewsAndSportaddList:string = ""

    ;

    If

    (profile1NewsAndSportAddLinksTilelist.dataProvider) {}

    If

    (Collection ArrayCollection (profile1NewsAndSportAddLinksTilelist.dataProvider) .length > 0) {

    for every()var obj1:Object in

    profile1NewsAndSportAddLinksTilelist.DataProvider) {}

    profile1NewsAndSportaddList += obj1.label +.

    ","

    ;

    }

    }

    on the other

    {

    profile1NewsAndSportaddList =

    'empty '.

    ;

    }

    }

    profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;

    var profile1NewsAndSportchoiceList:string = ""

    ;

    for every()var obj2:Object in

    profile1NewsAndSportLinkChoice.DataProvider) {}

    profile1NewsAndSportchoiceList += obj2.label +.

    ","

    ;

    }

    profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;

    profile1NewsAndSportSO.Flush ();

    }

    []] >

    < / mx:Script >

    < mx:TileList id=" profile1NewsAndSportAddLinksTilelist "fontWeight =" " "BOLD" "dragEnabled =" " true "dragMoveEnabled =" " true "dropEnabled =" " true "height =" " 292 "width =" 650 "left =" 21 "columnCount =" 5 "rowHeight =" 145 "columnWidth =" 125 "itemClick ="titleLabel.text = profile1NewsAndSportAddLinksTilelist.selectedItem.title; "" "" websiteLinkLabel.text = profile1NewsAndSportAddLinksTilelist.selectedItem.link; descLabel.text = profile1NewsAndSportAddLinksTilelist.selectedItem.description; linkImage.source = profile1NewsAndSportAddLinksTilelist.selectedItem.largeImage; "itemDoubleClick =" {navigateToURL (new URLRequest ('http://' + profile1NewsAndSportAddLinksTilelist.selectedItem.link))} "doubleClickEnabled =" true "backgroundColor =" #000000 "borderColor =" #FFFFFF "color =" #FFFFFF "borderSides =" top right left "y =" 25 " " / > "

    < mx:Canvas id=" SitePreviewArea " y=" 10 "width =" 453 "height =" 540 "backgroundColor =" #545050 "cornerRadius =" 20 "borderStyle =" "x =" 692 solid "largeurBordure =" 2 "dropShadowEnabled =" true "borderColor =" #000000 "" "" ""

    >

    < mx:Label x=" 45 "y =" 309 "text =" name of the Web site: "width =" 150 "height =" 52 "fontSize =" 14 "fontWeight =" "BOLD" "color =" #FFFFFF "left =" 10 " " / > "" "" "

    < mx:Label x=" 150,5 "y =" 309 "id =" titleLabel "width =" 282.5 "height =" 24 "fontWeight =" "BOLD" "fontSize =" 14 "color =" #FCFF00 "" "" ""

    / >

    < mx:Label x=" 124.5 "y =" 385 "text =" Description of the Web site: "width =" 200 "height =" 24 "fontSize =" 14 "fontWeight =" "BOLD" "color =" #FFFFFF "textAlign =" Center " " / > "" "" ""

    < mx:TextArea x=" 16 "y =" 417 "id =" descLabel "width =" 421 "height =" 69 "textAlign =" left "color =" #FCFF00 "largeurBordure =" 0 "backgroundColor =" #545050 "editable =" false "enabled =" true "disabledColor =" #FFFFFF "backgroundDisabledColor =" #545050 "fontWeight =" "BOLD" "fontSize =" 12 "" "" "" "" "" "" "

    / >

    < mx:Label x=" 61 "y =" 342 "text =" link to the site: "width =" 150 "height =" 52 "fontSize =" 14 "fontWeight =" "BOLD" "color =" #FFFFFF "left =" 10 "" "" "" "

    / >

    < mx:TextArea x=" 150,5 "y =" 343 "id =" websiteLinkLabel "width =" 282.5 "height =" 33 "fontWeight =" "BOLD" "fontSize =" 12 "color =" #FCFF00 "largeurBordure =" 0 "backgroundColor =" #545050 "editable =" false "enabled =" true "disabledColor =" #FCFF00 "backgroundDisabledColor =" #545050 "" "" "" "" "" ""

    / >

    < mx:Button id=" goToSiteButton " top=" 494 "left =" 168 "label =" VISIT "fontWeight =" "BOLD" "fontSize =" 14 "color =" #000000 "click =" {navigateToURL (new URLRequest ('http://' + websiteLinkLabel.text))} "fillAlphas =" [1.0, 1.0] "fillColors =" [#FFFFFF, #DCDCDC] "borderColor =" #000000 "" "" ""

    / >

    < mx:Canvas x=" 99.5 "y =" 51 "width =" 250 "height =" 250 "backgroundColor =" #FFFFFF "" ""

    >

    < mx:Image id=" linkImage "" "click =" {navigateToURL (new URLRequest ('http://' + websiteLinkLabel.text))} "width =" 250 "height = » 250 " x=" 0 " y=" 0 "scaleContent = » vrai " top=" 2 « droite = » 2 « gauche = » 2 « bas = » 2 "

    / >

    < / mx:Canvas >

    < / mx:Canvas >

    < mx:TileList id=" profile1NewsAndSportLinkChoice "fontWeight =" " "BOLD" "dragEnabled =" " true "dragMoveEnabled =" " true "dropEnabled =" " true "height =" " 292 "width =" 650 "left =" 21 "columnCount =" 5 "rowHeight =" 145 "columnWidth =" 125 "itemClick ="titleLabel.text = profile1NewsAndSportLinkChoice.selectedItem.title; "" "" websiteLinkLabel.text = profile1NewsAndSportLinkChoice.selectedItem.link; descLabel.text = profile1NewsAndSportLinkChoice.selectedItem.description; linkImage.source = profile1NewsAndSportLinkChoice.selectedItem.largeImage; "itemDoubleClick =" {navigateToURL (new URLRequest ('http://' + profile1NewsAndSportLinkChoice.selectedItem.link))} "doubleClickEnabled =" true "backgroundColor =" #000000 "borderColor =" #FFFFFF "color =" #FFFFFF "borderSides =" top right left "y =" 325 " " "

    / >

    < / mx:Application >

    If this post answers your question or assistance, please mark it as such.

    The problem is that you integrate images, but the imageLarge is always referring to the paths of the files and files are not installed with the AIR app.

    The following code looks nice not because of problems with copy/paste between Flex Builder and here, return.

    Here are the parts of a significant change:

    Replace the paths to images big with 'class' built-in names. I realize they are the same as thumbnails at the moment, but you can have names different 'class' incorporated to the images at full size.

    largeImage: "image1".

    largeImage: "image2".

    largeImage: 'image3 '.

    Change how the source of the large image is defined in your itemClick managers because the two lists of tiles:

    linkImage.source = this [profile1NewsAndSportLinkChoice.selectedItem.largeImage]; »

    Note the use of [this] to convert a string to an object name.

    
    
    
    
    
    
    
    
    
    
    
    
     0){
    
    if
    (profile1NewsAndSportSO.data.profile1NewsAndSportaddList){
    
    if
    
    (profile1NewsAndSportSO.data.profile1NewsAndSportaddList != "empty"){
    
    var
    
     profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(",");
    
    var
    
     profile1NewsAndSporttempAC1:ArrayCollection = newArrayCollection();
    
    for
    
     each(var str:String inprofile1NewsAndSportaddList){
    
    for
    
     each(var obj1:Object inprofile1NewsAndSportaddLinksAC){
    
    if
    (str == obj1.label){
    
    profile1NewsAndSporttempAC1.addItem(obj1);
    
    continue
    ;
    
    }
    
    }
    
    }
    
    if
    (profile1NewsAndSporttempAC1.length > 0){
    
    profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;
    
    }
    
    }
    
    }
    
    if
    (profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){
    
    var
    
     profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(",");
    
    var
    
     profile1NewsAndSporttempAC2:ArrayCollection = newArrayCollection();
    
    for
    
     each(var str2:String inprofile1NewsAndSportchoiceList){
    
    for
    
     each(var obj2:Object inprofile1NewsAndSportaddLinksAC){
    
    if
    (str2 == obj2.label){
    
    profile1NewsAndSporttempAC2.addItem(obj2);
    
    continue
    ;
    
    }
    
    }
    
    }
    
    if
    (profile1NewsAndSporttempAC2.length > 0){
    
    profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;
    
    }
    
    }
    
    }
    
    else
    {
    
    profile1NewsAndSportReset();
    
    }
    
    }
    
    private
    
     function saveprofile1NewsAndSport(event:MouseEvent):void{
    
    var
    
     profile1NewsAndSportaddList:String = "";
    
    if
    (profile1NewsAndSportAddLinksTilelist.dataProvider){
    
    if
    (ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length > 0){
    
    for
    
     each(var obj1:Object in
    profile1NewsAndSportAddLinksTilelist.dataProvider){
    
    profile1NewsAndSportaddList += obj1.label +
    
    ","
    ;
    
    }
    
    }
    
    else
    {
    
    profile1NewsAndSportaddList =
    
    "empty"
    ;
    
    }
    
    }
    
    profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;
    
    var
    
     profile1NewsAndSportchoiceList:String = "";
    
    for
    
     each(var obj2:Object in
    profile1NewsAndSportLinkChoice.dataProvider){
    
    profile1NewsAndSportchoiceList += obj2.label +
    
    ","
    ;
    
    }
    
    profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;
    
    profile1NewsAndSportSO.flush();
    
    }
    
    ]]>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  • Application based on the strange error in sharedObject led tilelist

    I recently made a request (with the great help of this forum) which allows users to drag items between tilelists and then save the changes to the tilelists via sharedObject method simply by clicking on save button so that the next time they open the application that changes will always be there but I have an error strange now message that appears.

    What happens is if the user is dragging ALL items in the tilelist left hand in hand right tilelist saves their changes, and then close and reopen the app then left tilelist contains no items and the right tilelist contains all the elements that goes well so far HOWEVER if now, the user clicks on the button without interacting with the tilelists an error pops up something in the sense of "save Error #1009". ': Cannot access a property or method of a null object reference. It seems harmless but when I finalize the app I don't want users to add all the elements of the tilelist right not save changes, close and reopen and then get an error, if happen them to click on save again.

    I can't understand it, but here is the code of the application: -.

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "creationComplete ="initprofile1NewsAndSportSO ();" >

    < mx:Script >

        <! [CDATA]

    import mx.collections. *;

    import flash.net.SharedObject;

    public var profile1NewsAndSportSO:SharedObject;

    private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new ArrayCollection([ )

    {link: 'www.bbcnews.com', label:' BBC News ', icon:'image7', largeImage:"assets/images/bbcnews_small.png", title:' BBC News ', description:"BBC News description will go here"},

    {link: "www.itv.com/", label:'ITV', icon:'picture5', largeImage:"assets/images/itv_small.png", title:'ITV', description:"ITV Description will go here"},

    {link: "www.skynews.com", label:' Sky News ', icon:'image10', largeImage:"assets/images/skynews_small.png", title:' Sky News ', description:"Sky News Description will go here"}

          ]);

    private var profile1NewsAndSportaddLinksAC:ArrayCollection = new ArrayCollection([ )

    {link: 'www.bbcnews.com', label:' BBC News '},

    {link: "www.itv.com/", label:'ITV'},

    {link: "www.skynews.com", label:' Sky News '}

          ]);

    private function profile1NewsAndSportReset():void{ }

    resetprofile1NewsAndSportAC();

    profile1NewsAndSportAddLinksTilelist.dataProvider

    = profile1NewsAndSportaddLinksAC;

    profile1NewsAndSportLinkChoice.dataProvider = new ArrayCollection([]);

          }

    private function resetprofile1NewsAndSportAC():void{ }

    profile1NewsAndSportaddLinksAC.removeAll ();

    for every()var obj:Object in profile1NewsAndSportaddLinksFullAC) { }

    profile1NewsAndSportaddLinksAC.addItem (obj);

            }

          }

    private function initprofile1NewsAndSportSO():void{ }

    profile1NewsAndSportSO = SharedObject.getLocal ("profile1NewsAndSport");

    If(profile1NewsAndSportSO.size > 0) { }

    If(profile1NewsAndSportSO.data.profile1NewsAndSportaddList) { }

    If(profile1NewsAndSportSO.data.profile1NewsAndSportaddList! = 'empty') { }

    var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split (',');

    var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection();

    for every()var str:String in profile1NewsAndSportaddList) { }

    for every()var obj1:Object in profile1NewsAndSportaddLinksAC) { }

                      if (str == obj1.label) { }

    profile1NewsAndSporttempAC1.addItem (obj1);

                        continues ;

                      }

                    }

                  }

    If(profile1NewsAndSporttempAC1.length > 0) { }

    profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;

                  }           

                }

              }

    If(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList) { }

    var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split (',');

    var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection();

    for every()var str2:String in profile1NewsAndSportchoiceList) { }

    for every()var obj2:Object in profile1NewsAndSportaddLinksAC) { }

    If(str2 == obj2.label) { }

    profile1NewsAndSporttempAC2.addItem (obj2);

                      continues ;

                    }

                  }

                }

    If(profile1NewsAndSporttempAC2.length > 0) { }

    profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;

                }           

              }

            }else{

    profile1NewsAndSportReset();

            }

          }

    private function saveprofile1NewsAndSport(event:MouseEvent):void{ }

    var profile1NewsAndSportaddList:String = ""; .

    If(collection ArrayCollection (profile1NewsAndSportAddLinksTilelist.dataProvider) .length > 0) { }

              for each(var obj1:Object in

    profile1NewsAndSportAddLinksTilelist.dataProvider) {}

    profile1NewsAndSportaddList += obj1.label + ','

              }

            }else{

    profile1NewsAndSportaddList = 'empty'

            }

    profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;

    var profile1NewsAndSportchoiceList:String = ""; .

            for each(var obj2:Object in

    profile1NewsAndSportLinkChoice.dataProvider) {}

    profile1NewsAndSportchoiceList += obj2.label + ','

            }

    profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;

    profile1NewsAndSportSO.flush ();

          }

        ]] >

    < / mx:Script >

    < mx:Button click = "profile1NewsAndSportReset ()" id ="reset"" «»

        label=" Reset " y=" 5 "height =" 25 " x=" 5 " />

    "" < mx:TileList id = "profile1NewsAndSportLinkChoice" fontWeight =""BOLD"" " "

    dragEnabled = "true"dragMoveEnabled = "true" dropEnabled ="true" height ="129" " "

    "" " width = '650" top ="5" left = "521" columnCount = "5" rowHeight ="145" " "

    "" = columnWidth '125"backgroundColor ="#000000"color ="#FFFFFF"""/ >

    "" < mx:TileList id = "profile1NewsAndSportAddLinksTilelist" fontWeight =""BOLD"" " "

    dragEnabled = "true"dragMoveEnabled = "true" dropEnabled ="true" height ="129" " "

    "" width = '385"top ="5"left ="128"columnCount ="3"rowHeight ="145"columnWidth ="125"" "

    " backgroundColor ="#000000"color ="#FFFFFF"""/ > "

    " < mx:Button click =" saveprofile1NewsAndSport (event) "id ="Save"label ="save changes"" ""

        x=" 5 " y=" 38 "width =" 113 "height =" 25.5 " />

    < / mx:Application >

    This should fix it.

    If this post answers your question or assistance, please mark it as such.

    
    
      
         0){
              if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList){
                if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList != "empty"){
                  var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(",");
                  var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection();
                  for each(var str:String in profile1NewsAndSportaddList){
                    for each(var obj1:Object in profile1NewsAndSportaddLinksAC){
                      if(str == obj1.label){
                        profile1NewsAndSporttempAC1.addItem(obj1);
                        continue;
                      }
                    }
                  }
                  if(profile1NewsAndSporttempAC1.length > 0){
                    profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;
                  }
                }
              }
              if(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){
                var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(",");
                var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection();
                for each(var str2:String in profile1NewsAndSportchoiceList){
                  for each(var obj2:Object in profile1NewsAndSportaddLinksAC){
                    if(str2 == obj2.label){
                      profile1NewsAndSporttempAC2.addItem(obj2);
                      continue;
                    }
                  }
                }
                if(profile1NewsAndSporttempAC2.length > 0){
                  profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;
                }
              }
            }else{
                profile1NewsAndSportReset();
            }
          }
          private function saveprofile1NewsAndSport(event:MouseEvent):void{
            var profile1NewsAndSportaddList:String = "";
            if(profile1NewsAndSportAddLinksTilelist.dataProvider){
              if(ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length > 0){
                for each(var obj1:Object in
                  profile1NewsAndSportAddLinksTilelist.dataProvider){
                  profile1NewsAndSportaddList += obj1.label + ",";
                }
              }else{
                profile1NewsAndSportaddList = "empty";
              }
            }
            profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;
            var profile1NewsAndSportchoiceList:String = "";
            for each(var obj2:Object in
              profile1NewsAndSportLinkChoice.dataProvider){
              profile1NewsAndSportchoiceList += obj2.label + ",";
            }
            profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;
            profile1NewsAndSportSO.flush();
          }
        ]]>
      
      
      
      
      
    
    
    

Maybe you are looking for