How do I identify the button that has been pressed?

Hi,
I have an application that has a single event handler which handles 8 different menu selection items (they happen to be sources for a scope display). Since handling any of these requires knowledge of all of these, it makes sense to handle all of them with a single event, rather than configure one event per button.
So, the question is, once I enter the event handler, how do I determine exactly which of the buttons (menu item, actually - sorry for the interchangeability) has been pressed? I have:
Source
Type
Time
CtlRef
OldVal
NewVal
as possible parameters, but none of these provide an identification as to which one was pressed. BTW, the reason for doing this is that if the change happens to result in an invalid configuration, I wish to reset the menu selection to the previous value.
Thanks,
Jason

As an alternate to searching refs, you can a) go the long way and just build one event per button or b) put the buttons into a cluster and search for the changed value that way.
An example of 'b' is attached (LV 6.1).
2006 Ultimate LabVIEW G-eek.
Attachments:
Which button event.vi ‏28 KB

Similar Messages

  • I'm moving an internal hard drive from an old computer to a new computer.  How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been moved to the new computer?

    I'm moving an internal hard drive from an old computer to a new computer.  (My new compute runs Windows 8.1) How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been moved to the new computer?  Is this possible or do I have to use the procedure of copying the catalog along with the photos to a back up hard drive and then restore them on the new computer?

    The 'normal' procedure is to do a PSE organizer backup (not a copy or a backup from external tools) to an external drive, then a restore to the new location.
    The advantage is that you have a backup of both catalog and media files and you don't have all disconnected files, which would happen with external backup tools. Also, if you restore with a more recent elements version, the catalog will be automatically updated to the new format.
    The drawback in your situation is that you'll have either to overwrite all your files or restore to a custom location, creating a duplicate photo library (which supposes you have enough free space).
    It would be possible to simply use the organizer in the old PC to move the catalog to a new 'custom' folder just under your C: root drive. The catalog would be accessible once the drive will be installed in the new PC. Then you would have all files 'disconnected' due to the fact that all your media files are now on a drive with a different letter. Reconnecting a whole library is a hard job with PSE6, less so with PSE11/PSE12.
    If the idea of fiddling with the sqlite database with external sqlite manager tools is ok for you, I can describe the process more in detail. You only copy your catalog folder (as suggested above) to another location. Instead of trying the 'reconnection' way, you install the sqlite utility on the new computer. When the old drive is installed in the new computer, you simply edit a given record in the catalog database, catalog.psedb, and start the organizer with your copied catalog by simply double clicking the 'catalog.psedb' file.
    Even if the last solution is much, much quicker, I would still create a new PSE backup : you have never too much safety .

  • HT1212 how do u restore an iPod that has been disabled and has never been connected to the computer

    How do i restore an ipod that has been disabled and has never been conected to itunes

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • How can i copy a picture that has been installed with the flash player

    how can i copy a picture that has been installed using the flash player

    You can't. You can take a screen cap of it, but the container doesn't allow access to the individual images used in a SWF or FLV.

  • Hi I would like to know how I can view a video that has been send via mail. When I tap on the video it only gives me the option to send iit as mail again

    Hi  I would like to know how I can view a video that has been send to me via email. When I tap on the video icon it only gives me option to send as a mail or to open in drop box which I don't want to open in.

    Welcome to the Apple community.
    If you are doing this from your phone (as you mention) then you can use the new iPhoto Photo Journal feature to do this.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage.

  • Printing the percentage of the file that has been loaded

    Hello everyone!
    I'm using a FileInputStream and a DataInputStream to read my .DAT file, but I want to print out the amount of percentages of the file that has been loaded, in a System,out.print(""); statement, please tell me how I can do this. :)
                fileInStream = new FileInputStream("C:/Documents and Settings/Benjamin Dahse/Dokumenter" +
                        "/NetBeansProjects/Online Multiplayer Game Client/build/classes/net/client/game/io/Cache/" +
                        "main_file_cache.DAT");
                dataInStream = new DataInputStream(fileInStream);This by the way, is how I get the path to the file, I want my DataInputStream to read.

    Thank you for your comment, but out of this code:
                int percentage = 0;
                byte[] buffer = new byte[15000000];
                while(true){
                    percentage += dataInStream.read(buffer, percentage, Math.min(buffer.length,
                            fileInStream.available() - percentage));
                    System.out.print(percentage / fileInStream.available() + "\n");
                    if(percentage >= fileInStream.available()){
                        break;
                }The only output I get is 3?

  • HoW do I save a recording that has been sent to me via text message? Thanks

    HoW do I save a recording that has been sent to me via text message? Thanks

    You will need a document storage, player, or manager to save the file (DropBox, File Manager, Box, VLC, MoliPlayer for example).
    To actually save the file, with it open in iMessage, tap the file icon (lower left) and select the app to save it in.

  • How do u uninstall the apps that already been purchased?

    How do u unitalled the apps that already been purchased?

    Press and hold any of the apps and after a couple of seconds or so they should start to shake. Then press the 'x' in the left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. You cannot delete any of the Apple built-in apps e.g. Music/iPod, App Store, Game Centre etc. If you don't get the 'x' on any of the apps that you've downloaded then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'

  • HT201365 What if the device that has been stolen or lost is not connected to wifi? Can we still track them and lock them up?

    What if the device that has been stolen or lost is not connected to wifi? Can we still track them and lock them up?

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • How can you find an ipod that has been lost

    how can you find an ipod that has been lost and the icloud is not turned on

    lost/stolen                                      
    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • For iOS the ipad version shows the folio that has been published, but the iPhone app is not.

    I am responsible for handling the apps and not at all involved with or know how the folio creation process works.
    When I build the app for iOS the iPad version shows the folio that has been published, but the iPhone app is not showing the folio.
    Is this something related to the build process or how the folio was created?
    The folio also shows up in the Android app (at least the phone I have tested with).
    Thanks,

    "Android and iOS viewers have different requirements for displaying folios. Any folio size you create can appear in an Android viewer. The articles are scaled and letterboxed as needed. However, on the iPad, the viewer displays only folios with a 4:3 aspect ratio. The iPhone viewer displays only folios with a 3:2 or 16:9 (1136x640) aspect ratio."
    Here is the entire post if you'd like to read more: Digital Publishing Suite Help | Creating documents for multiple devices

  • How do i delete the songs that have been downloaded onto my iphone?

    how do i delete the songs that have been downloaded onto my iphone?

    doesn't work... it still shows i hv all the songs in my iphone...
    i've deleted all the songs... emptied the Recycle Bin too...
    i used to be able to just clear all the music away and sync in a whole new set of songs..
    but i can't do it now...
    sad...
    any help available as i do not want to have to do it manually one by one unchecking the songs...

  • Identify USAGE TYPE that has been installed in the system

    Hi All,
    I have a newly upgraded BI system. I need to check what are all the USAGE types that has been installed in the system. How to verify the same (without asking the basis person). Is there any system parameter or transaction which would give the usage type installed.
    Points would be assigned for useful answers.
    Thanks,
    Vidhya.A

    Hi Vidhya,
    In BI the designtime and runtime of webtemplates use BI-JAVA usuage type.similarly for Formatted reporting too it uses BI-JAVA.see if you can successfully create a new webtemplate and can execute it,if you can then they had deployed dual stack in ur system.u can also check in Tcode SICF to see if web services are on.let me know if that helps
    Regards
    Chandru

  • How can i delete a toolbar that has been added?

    Somehow I have a toolbar for a shop at home site that has been added to my list of toolbars. It takes over my browser when I'm surfing and takes me to places i have not selected. How can i delete this toolbar? I believe I have the latest version of firefox and i am running windows 7

    This sounds like spamware you might have installed by accident. If you go into Add-Ons (Firefox -> Add-Ons) it should be under 'Extensions'. Click the 'Remove' button and that should get rid of it.
    You might also find it under 'Programs and Features' in Control Panel. Remove it if it's there.

  • How to post invoices in AP that has been paid by employess and make corr

    Hi Guys,
    Do you know how to correct book AP invoice in Oracle 11i that has been paid by employees and how to make correct reconciliations in the books on Supplier and Employees side? Employee paid by cash for AP invoice that has been borrowed to him from company.
    Thanks
    Karol
    .

    if this is a normal practice in your organization, then you can do the following:
    1-define a natural account in COA for this employee.
    2-create a bank account for payable and use this account as cash account.
    3-make payment from this bank account for supplier invoice paid by the employee.
    4-when making payment to employee, enter a Standard invoice while selecting employee as supplier and in distribution select account defined in step#1 and make payment of this invoice form actual bank or cash account created as bank in your application.
    i hope this will solve your purpose.
    Rgds,
    Fahd

Maybe you are looking for

  • Can I stream music to apple tv and airport express at the same time?

    Does anyone know if I can stream music to both AppleTV and Airport Express (speakers) at the same time? I have a TV in my living room and external speakers on my deck and want to stream music to both at the same time so I have the same music playing

  • When trying to look at pix on a cd, it comes up as word document and have to right click on preview to see picture. Why

    On my desktop, when wanting to see pictures on a CD, if I click on the picture icon it open as a word document. I must right click on the icon then click on preview and can then see all pictures on the CD. This just started after the last Firebos upd

  • Graceful failure - maximum server capacity reached

    Hello, We are doing Infrastructure design and planning. We have a requirement for graceful failure in case the maximum capacity of the server is reahed. For e.g. server is built for x number of concurrent users. when x+1th user accesses the system, i

  • Licence issues

    I have photoshop elements 11 and premier elements 11 on a desktop and a laptop, if I uninstall from the laptop can I reinstall on a new laptop without any licence issues?

  • CS6 windows 64 bits Premiere

    Hi, (sorry for my english, I'm a french speaking native) I installed the CS6 master Collection (students) on a windows 7 - 64 bits PC. PSD, Indesign, Illustrator, no problem. But Premiere and Distiller don't want to open. (when I try to open Premiere