Use listbox to work with strings

Hello guys,
I am struggling looking for a way to work with strings using a listbox. I think the problem is quite simple, but I don´t know how to implement it using labview.
I have an array of N elements (N is different everytime I run the program), and each element is a string (actually each element is a command). I would like load this array, and then if I select an element (by double-clicking or something similar), I would like to get a translation of the command.
In fact, I only need a way of loading the array, selecting an element, and then put it into a variable that would be translated with a SubVI that I have already implemented.
Do you have any clue of doing this? I have tried with the multicolumn listbox, but I cannot connect any array of strings to it, and I am starting to have a lack of new ideas...
Many thanks for your help

Maybe this helps you:
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • I have downloaded MAMP for Mac and want to use it for working with Wordpress. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    I have downloaded MAMP for Mac and want to use it for working with Wordpress. I'm on an Imac with Maverick OS 10.9. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    It depends on how you installed it. You have to shutdown the MySQL service first. If you used the standard, but obsolete Startup Item, you can do that with the Startup Item. If you created a launchd script, you can do it with launchctl. Once MySQL is no longer running, you can delete the Startup Item or launchd script and the rest of MySQL.

  • Working with strings and cell references

    Hi all,
    I'm a fairly new user to the Mac world but I'm a power user of Excel trying to moving into the number environment. I'm currently experiencing some very inconsistent behaviour working with text strings in Numbers.
    I've used both '&' and CONCATENATE to try to concatenate strings and cell references and regualarly I'm getting the situation where the formula initially works and then when I save and reopen the file the cells containing the error return a syntax error.
    Upon examining the formula it appears that the cell references are converted from cell references to simple text so & (b2) & becomes &b2&.
    Any ideas what is causing this?

    I apoligise for this tardy response. Firstly, the issue occurred not when I first create the formula but when I save, close and reopen the document.
    Upon examining the formula, the cell reference is not being recognised and so instead of A2 referencing a cell it's simple A2 which causes an error.
    And this is happening in more than one cell (whole rows of cells actually as I've often created a formula and copied it down 10 or 200 rows).
    It is also happening on more than one file Badunit so I don't think it's a corrupt file.
    It's more than a little annoying though as it means every few days when I go back in to a file I need to spend a few minutes recreating the formulas.
    Any other suggestions?
    Oh and I've tried both methods of formula creation of typing the reference and clicking, but the result is the same.
    Message was edited by: Un-decided

  • EL Map won't work with numerical index - works with string

    If I populate a map with a numeric index, the values won't appear when I refer to it as ${myMap[0]} in JSP. In my servlet I populate myMap by doing a put(0,value).
    However, when I do a myMap["index0"] or myMap.index0, it works! I simply change the line that populates the Map to put("index0",value).
    Why won't it work with a numerical index? Does it have something to do with JDK 1.5's autoboxing? I cast the 0 to an int in the put( ) method, but that makes no difference.
    What could be happening here? Does it work for you?
    Thanks.

    Whats causing this?
    Basically autoboxing puts an Integer object into the Map.
    ie: map.put(new Integer(0), "myValue")
    EL evaluates 0 as a Long and thus goes looking for a Long as the key in the map.
    ie it evaluates: map.get(new Long(0))
    As a Long is never equal to an Integer object, it does not find the entry in the map.
    Thats it in a nutshell.
    JSP page demonstrating this:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ page import="java.util.*" %>
    <h2> Server Info</h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    <%
      Map map = new LinkedHashMap();
      map.put("2", "String(2)");
      map.put(new Integer(2), "Integer(2)");
      map.put(new Long(2), "Long(2)");
      map.put(42, "AutoBoxedNumber");
      pageContext.setAttribute("myMap", map); 
      Integer lifeInteger = new Integer(42);
      Long lifeLong = new Long(42); 
    %>
      <h3>Looking up map in JSTL - integer vs long </h3>
      This page demonstrates how JSTL maps interact with different types used for keys in a map.
      Specifically the issue relates to autoboxing by java using map.put(1, "MyValue") and attempting to display it as ${myMap[1]}
      The map "myMap" consists of four entries with different keys: A String, an Integer, a Long and an entry put there by AutoBoxing Java 5 feature.      
      <table border="1">
         <tr><th>Key</th><th>value</th><th>Key Class</th></tr>
         <c:forEach var="entry" items="${myMap}" varStatus="status">
         <tr>      
           <td>${entry.key}</td>
           <td>${entry.value}</td>
           <td>${entry.key.class}</td>
         </tr>
         </c:forEach>
    </table>
        <h4> Accessing the map</h4>   
        Evaluating: ${"${myMap['2']}"} = <c:out value="${myMap['2']}"/><br>
        Evaluating: ${"${myMap[2]}"}   = <c:out value="${myMap[2]}"/><br>   
        Evaluating: ${"${myMap[42]}"}   = <c:out value="${myMap[42]}"/><br>   
        <p>
        As you can see, the EL Expression for the literal number retrieves the value against the java.lang.Long entry in the map.
        Attempting to access the entry created by autoboxing fails because a Long is never equal to an Integer
        <p>
        lifeInteger = <%= lifeInteger %><br/>
        lifeLong = <%= lifeLong %><br/>
        lifeInteger.equals(lifeLong) : <%= lifeInteger.equals(lifeLong) %> <br>
        That at least explains what is going on.
    Not sure exactly what I would do to "fix" it. Would have to look at what the requirements are. But basically I think it would end up as having to use Longs rather than Integers as keys in the map, meaning autoboxing could not be used.
    Cheers,
    evnafets

  • I have truble with firefox 5 because the plugin I want to use doesn't work with 5 yet, just 4. The plugin is Firebug.

    I can't use the plugin "Firebug" because it doesn't work with Firefox 5 yet. Because of that I want to download Firefox 4 instead of 5, but I can't find it anywhere. Just the third version, and 5 off course.
    I'm sorry if this isn't in the correct category, just picked the one that seemed to be right...

    Go buy yourself a iPhone 5. Sync your iPhone 3GS to iTunes on you computer so you have a back up ready to put on the iPhone 5. If you want you can update your iPhone 3GS with iTunes on your computer, but this is not necessary.

  • Why can't I change the size of the page using the two finger pinch method on my touchscreen computer when using firefox. it works with explorer. thanks

    I should be able to adjust the screen size using two fingers. It works with explorer but not with firefox. Is there a setting I need to adjusrt. Thank You

    Please [https://support.mozilla.com/en-US/questions/900198 see this.]

  • I used to have mobileme which never really worked properly, and now i would like to use Icloud which work with my Iphone and Ipad, however when i synch with my macbookpro, it does not synchronize properly. Can u please help me?

    I used to have mobileme which never really worked properly, and now i would like to use Icloud which work between my Iphone and Ipad, however when i synch with my macbookpro, it does not synchronize properly. Can u please help me?

    Thanks King_Penguin for taking time to read and reply. 
    I just purchased this movie on Thursday, May 15, so just a few days ago.  I have never had any trouble whatsoever since I have been in Vietnam.  I have downloaded several movies and even music and they have all synced to my respected Apple products except for this purchase. 
    Sorry, I don't quite understand what you mean by studios and different versions.  Could you please explain? 
    I checked my purchased list in my purchase history under my account and there are no hidden items. 

  • What printer using bluetooth will work with an android tablet

    what printer using bluetooth technology will work with an android tablet

    The iPad mini supports Bluetooth keyboards in the same way that all other iPad models have.  There are not many keyboards available yet that are specially designed for the mini yet, but I am sure the will be soon.  In the mean time you can use any Bluetooth keyboard that is designed for the bigger iPad, Mac, or whatever.

  • Working with strings

    Hi All
    I have a column with records like this:
    a-b-c-d
    1-2-3-4
    x-y-z-1I want to print till before the third occurance of '-', i.e:
    a-b-c
    1-2-3
    x-y-zany string function can help me out?

    sandipjee wrote:
    Or if we can trim out somehow everything after last '-' will be better... :)The solutions so far were for you original requirement of "I want to print till before the third occurance of '-'" If you want to change third occurence to last occurence then this should work:
    with a
    as (select 'a-b-c-d' str from dual
    union all select '1-2-3-4' from dual
    union all select 'x-y-z-1' from dual
    union all select 'a-b-1' from dual
    union all select 'a-b-c-d-1' from dual
    )select str
           ,substr(str,1,instr(str,'-',1,3) - 1) "3rd '-'"
           ,substr(str,1,instr(str,'-',-1,1) - 1) "last '-'"
    from a;
    STR       3rd '-'   last '-'
    a-b-c-d   a-b-c     a-b-c
    1-2-3-4   1-2-3     1-2-3
    x-y-z-1   x-y-z     x-y-z
    a-b-1               a-b
    a-b-c-d-1 a-b-c     a-b-c-dBen

  • Problem in using Unit of Work with executeNonSelectingCall() method

    Hi,
    I am using external Connection Pooling and Transaction Controller of JBoss in Toplink.
    When I am getting the data from DB and do "clientSession.release();", it works fine.
    I get the clientSession as follows:
    serversession = (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(),"Session", Thread.currentThread().getContextClassLoader(), false, true);
    serversession.login();
    ClientSession clientsession = serversession.acquireClientSession();
    I am facing the problems in two cases:
    Case 1: But when I get the UOW through "transaction = clientSession.getActiveUnitOfWork();" and insert the data, commit and do "clientSession.release();", I get the following error:
    [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@c42091
    I removed clientSession.release(); from my finally{} block still I am getting the same error.
    Case 2: But when I get the UOW through "transaction = clientSession.acquireUnitOfWork();" and insert the data, commit and do "clientSession.release();", I get the following error:
    17:48:55,670 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String com.pearson.pix.business.purchaseorder.interfaces.PurchaseOrderLocal.saveOrderConfirmation(com.pearson.pix.dto.purchaseorder.POHeader) throws com.pearson.pix.exception.AppException, causedBy:
    org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=asad/139, BranchQual=, localId=139] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.NullPointerException)
         at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:354)
    I am not able to understand what to do. Pls. help.
    Thanks

    Locking a row that does not exist can be difficult.
    On most database you can lock an entire table through "LOCK TABLE <table>", however this may be extreme. Potentially you could also insert an empty row into the table with the id that you want to lock, then you would have a write lock on the row until you commit the transaction.

  • Using EWS to work with mail items from a range derived from Get-Date

    I am attempting to write a powershell script that uses EWS to move items from the prior month and create a folder named after that month to hold those items. 
    I am finding that the search filter only likes the format if you use .NET system.DateTime and not Get-Date.
    However it's strange, for testing I configured my variable to be the exact same format as the .NET format but it rejects it. 
    The error i receive is: 
    Exception calling "FindItems" with "2" argument(s): "The specified value is
    invalid for property."
    At line:1 char:1
    + $frFolderResult = $InboxFolder.FindItems($sfCollection,$view)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ServiceResponseException
    For example, if i set $startdate and $enddate like this  $startdate=(([system.DateTime]::Today.AddDays(-60)))
    $startdate returns Monday, January 20, 2014 12:00:00 AM, and the search filter works fine.
    but if i set $startdate using this: $startdate = (Get-Date).AddMonths(-1).ToString("dddd, MMMM 01, 12:00:00 AM")
    It gets rejected event though the output is exactly the same.
    i.e. Friday, February 01, 2014 12:00:00 AM
    Any help would be appreciated. 
    Thank You. 
    #Set the mailbox that this script will run against
    $MailboxName = "[email protected]"
    # Set up the API dll path, AutoDiscover URL and AD account used to access the mailbox
    Import-Module "C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll"
    $service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::"Exchange2010_SP2")
    $windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
    $sidbind = "LDAP://<SID=" + $windowsIdentity.user.Value.ToString() + ">"
    $aceuser = [ADSI]$sidbind
    $service.AutodiscoverUrl($aceuser.mail.ToString())
    # Determine if the script is running in January in order to set the year used in the search filter
    if ((Get-Date).Month -eq 1) {
    $searchyear = (Get-Date).Year - 1
    Else{
    $searchyear = (Get-Date).Year
    # Set variables for the search filter to move items from the prior month to a folder
    $startdate = (Get-Date).AddMonths(-1).ToString("dddd, MMMM 01,")
    $startdatetime= "$startdate $searchyear 12:00:00 AM"
    $enddate = [System.DateTime]::DaysInMonth($(Get-date).Year, $(Get-date).Month -1)
    $priormonth = (Get-Date).AddMonths(-1).ToString("dddd, MMMM")
    $enddatetime = "$priormonth $enddate, $searchyear 11:59:59 PM"
    # Set up folder path locations for the search filter
    $folderid = new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$MailboxName)
    $MailboxRoot = new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot,$MailboxName)
    $InboxFolder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$folderid)
    # Create the search filter
    $Sfgt = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsGreaterThan([Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeReceived, $startdatetime)
    $Sflt = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsLessThan([Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeReceived, $enddatetime)
    $sfCollection = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+SearchFilterCollection([Microsoft.Exchange.WebServices.Data.LogicalOperator]::And);
    $sfCollection.add($Sfgt)
    $sfCollection.add($Sflt)
    # Perform the search
    $view = new-object Microsoft.Exchange.WebServices.Data.ItemView(5000)
    $frFolderResult = $InboxFolder.FindItems($sfCollection,$view)
    # define the destination folder name, check if the destination folder exists
    $foldermonth = (Get-Date).AddMonths(-1).ToString("MM")
    $newFolderName = "$foldermonth$searchear"
    $fvFolderView = new-object Microsoft.Exchange.WebServices.Data.FolderView(10)
    $SfSearchFilter = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo([Microsoft.Exchange.WebServices.Data.FolderSchema]::DisplayName,$newFolderName)
    $findFolderResults = $service.FindFolders($MailboxRoot,$SfSearchFilter,$fvFolderView)
    # Create the destination folder if necessary
    if ($findFolderResults.TotalCount -eq 0){
    $NewFolder = new-object Microsoft.Exchange.WebServices.Data.Folder($service)
    $NewFolder.DisplayName = $newFolderName
    $NewFolder.Save($MailboxRoot.Id.UniqueId)
    else{
    # Folder Already Exists - Do Nothing
    # Move the items in to the destination folder
    foreach ($miMailItems in $frFolderResult.Items){
    "Moving" + $miMailItems.Subject.ToString()
    [VOID]$miMailItems.Move($NewFolder.Id.UniqueId)

    The Managed API is expecting you to pass a Typed Value not a String so if you just use
    $startdatetime= [System.DateTime]::Parse("$startdate $searchyear 12:00:00 AM")
    That should work okay, the Managed API itself will then covert it to and from UTC and then submit the query eg
    <m:Restriction>
    <t:IsLessThan>
    <t:FieldURI FieldURI="item:DateTimeReceived" />
    <t:FieldURIOrConstant>
    <t:Constant Value="2014-02-24T03:26:34.889Z" />
    </t:FieldURIOrConstant>
    </t:IsLessThan>
    </m:Restriction>
    Which you can see yourself if you enable tracing eg
    $service.TraceEnabled = $true
    Cheers
    Glen

  • Using DataServices and Assemblers with Strings

    I have a Java Assembler which obtains a list of strings, on
    Flex it throws a run-time error saying that i am not using the
    IManaged interface.
    When you use custom AS classes you use the [Managed] metadata
    and that solves it but like i said, i am not using custom objects i
    am using Strings.
    So is it possible to make this work? what do i need to do? i
    wouldn't like to have to create a custom object with a String
    property to make this work, so if anyone has any ideas please let
    me know

    Nope i haven't posted it there yet but i will, still i was
    hoping someone here could help me out, there are many topics
    related to FDS in this forum.

  • How do I use a Case Structure with Strings?

    I need to use a string list to set up a set of cases to be performed. Is it possible to tell a single case structure to do "a, b, c, and d, but not e or f" or "do a, c, d, and f, but not b or e" etc... when you use a string containing the cases to be used?

    Blackavar,
    A case structure will only execute a single case at a time. If you want to have multiple cases execute in parallel, then you would need to have multiple copies of the case structure and split the string apart and wire them to all of the needed case structures.
    This could be done with reentrant subVIs to run truely in parallel. Anther method would be to have 6 different case structures, all with 7 cases each. The 7 cases would be "a", "b", "c", "d", "e", "f", and "0". Your input sting will need to be built up so that it will always be 6 characters long and then split up so that each character goes to one of the case structures. You would have your needed code for cases a - f. Case "0" would do nothing.
    Randy Hos
    kin
    Applications Engineer
    Nationsl Instruments
    http://www.ni.com/ask

  • How to use iMac to work with windows computers like pcAnywhere?

    I just bought my first iMac, and love it. I run pcAnywhere (version 12.1) on a few windows computers for work, but need to connect to them via my new iMac and using a phone line modem.  How do I do this; and I am fairly new to Mac.  I have tried to install the pcAnywhere on my Mac, using pcAnywhere Cross Platform, but it will not connect at all and the error code I get is below:
    You can't open the application "pcAnywhere CrossPlatform" because PowerPC applications are no longer supported.
    It took me over an hour to get it installed, via java downloads.  I connect on my old PC's with a phone number to connect via the modem because where I am connecting to has no Internet other than a phone line.
    Please help!!

    The PCAnywhere application you are trying to run is too old to be supported on a Mac running Lion, Mountain Lion, or any newer MacOS.  I would check to see if PCAnywhere has released an updated version of the application that you can use.  If not, you will probably need to go the route of virtualization (or keep an old PC around for supporting work).
    If you have to use virtualization, then you might want to consider using Virtual Box (a free app) to install Windows 7 on a virtual PC, then just run the PC version of your PCAnywhere software just like you would on any other PC.  You could use Virtual Box to install a MacOS 10.6.8 (Snow Leopard) instance and run your existing Mac version of the PCAnywhere software, but you would probably be better off to just use the Windows version.

  • My mouse scroll wheel doesnt work while using firefox, but works with everthing else

    when using firefox my mouse wheel will not work in any website, it will work if i open a pdf file

    If it's an Acer laptop, there appears to be a bug with the ALPS drivers. See: https://bugzilla.mozilla.org/show_bug.cgi?id=605357

Maybe you are looking for

  • 3rd party earbuds/phones not working with new Nano

    So, I've got a new Nano ( a couple months old at this point ), and the earbuds that came with it got accidently trashed. No worries, because I've got several other sets of earbuds / headphones kicking around. The problem is that with all of them, the

  • Idoc to multiple file...

    Hi Experts, My Scenario is : Idoc to File We are using PI 7.1.. Requirement is when i trigger an Idoc,  at the target end at one location some fields of Idoc needs to be dropped as an .txt file and some fields of idoc needs to be dropped as an XML fi

  • Os7 granddaughter has disabled my phone trying to figure out password how do I fix this.

    Just updated to OS7 with a password. 4 yr old grand daughter ear just disabled my iPhone trying to figure out the password. I can only make emergency calls!!! How do I fix my phone?

  • Invisible or semi-invisible posts :)

    I mentioned this in an unrelated thread but several responses down so doubt any/many saw it. Don't know if this is practical or desirable, but what if there was a way to mark a post as invisible. What do I mean by that you ask? What if I could reply

  • Flash player not working in IO7 page download

    I just downloaded (Save as - complete) a IE7 (Internet Explorer 7.) web page to my harddrive, when I open it indicates by the Icon present in the upper corner of the opened web page that I need to download Flash Player. The webpage is basically an ec