What is the easiest way to always increment to index 0 only for a multi-element array ?

The premise is to populate a spreadsheet from left to right in the same row but incrementing the column letter only (ie - B4, then C4 etc). Attached I have customized an existing example VI that works for a 2 element array (ie - B4) but does not work for a 3 element array (ie - B40, then becomes B50). Keeping it simple, what is the best and easiest way to modify my existing code to always check the array size and automatically index back to 0 in order to properly increment the first letter only (ie - B) and not the number (ie - 4) ?
Thanks !
Barry
Solved!
Go to Solution.
Attachments:
String Increment.vi ‏7 KB

In case you ever have more than 26 columns (as Ravens Fan noted), here
is some code I use to generate the column label from the column number
(0=A,1=B,...).
Attachments:
ExcelColumnLabels.png ‏17 KB

Similar Messages

  • What is the easiest way to create and manage very big forms?

    I need to create a form that will contain few hundred questions. Could you please give me some advise on what is the easiest way to do that? I mean for example is it easier to create everything in Word (since it is easier to manage) and than create a form based on that?
    My concern is that when I will have a very big form, containing different kinds of questions and with many scripts, managing it during work will be slow and difficult, for example adding a question in the middle of the form which would require moving half of the questions down which could smash the layout etc.
    What is the best practise for that?
    Thanks in advance

    Try using Table and Rows for this kind of forms. These forms will have the same look throught with a question and and answer section..
    In the future if you want to add a new section, you can simply add rows in between..
    Thanks
    Srini

  • What is the Easiest way to create a playlist?

    What is the easiest way to create a playlist without going through all 1500 in my iTunes?  I know some artists I want all their songs.......others I don't.

    I have WMP on my computer and know you can quite easily make playlists within it.
    Then if you connect your player to the computer and drag and drop the playlist into the sync
    screen you should then be able to transfer it to the player.
    Not tried this way as I always use Zen Media Explorer for making playlists.
    Gi've it a try-you have nothing to lose.
    Best of Luck
    ZENFLASH

  • What's the easiest way to make a password system? 10 Duke Points!

    Hello everyone,
    What's the easiest way to make a password system in java?
    I'd like to be able to:
    1) store passwords for about 6 people.
    2) have the people only interact with my program using my Eclipse console with no GUIs, pop-ups or Swing code.
    3) let the people have the ability to create/delete their own passwords and logins. (ideally)
    Having searched around the Internet, it seems that the options are to:
    A) have code that allows users create files, write to files, read from files.
    B) have code that serializes objects - this seems pretty difficult.
    C) have code that has a hash table of some kind - although I don't really know hash tables very well and am not sure if they can store data over time unless the program is always running (which is an option).
    D) use some sort of javadoc like PassWordCallback - this one looks the easiest as the code already seems to be there but I'm not really sure how to include this type of stuff in my code.
    E) have code that allows users to input their password, which I've given them on a piece of paper, and then allow the code to match it to a file - this wouldn't let the users create their own passwords though.
    Anyway, hope you can help!
    I have a 'Head First Java' book and a 'Java for Dummies' book if you know of anything directly useful in these books.
    Edited by: woodie_woodpeck on Jan 11, 2009 3:51 AM

    bastones_ wrote:
    Using GUIs and Swing is really easy, I have only been using Java for a week now and I have already made a simple application with events. First of all Swing is a package and you need to import it (as described in the documentation).
    When you click on the Swing package in the documentation to the second frame you'll see JFrame when you scroll down. JFrame's are the main windows on your screen. JFrame is a class therefore it needs to be instantiated (making an instance of that class so we can use it). After all, everything is based around classes.
    JFrame frame = new JFrame("Title here");
    Note: The "JFrame" before the frame vaiable name is the "data type" of the variable, really we're making an object type (I think its called) just like we'd do String frame if we wanted to make a frame variable that is of type String.
    As explained in the [JFrame section of the documentation|http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html] in the "Constructor Summary" section is the different types of Construtors that are made available to us when we instantiate the JFrame class. One of the construtors available are:
    JFrame(String title)
    ... which is exactly what I did above in the brackets/parentheses (its telling us we can add a String title).
    Remember constructors do not have any return type or anything and is not a method, because it is the same name as the class and when we instantiate we call the constructor. And so the JFrame class has many constructors, one is for making a title for our JFrame and another is just instantiating without a title. If there wasn't the JFrame(String title) and just JFrame() constructor, we wouldn't be able to add a title as we made an instance of JFrame.
    So once we've made an instance of JFrame we have all the methods available (and all of the methods are shown in the API documentation).
    Hope you understand now :).Wow. Thanks a lot bastones_. I think Swing is just a bit beyond me at the moment and will require quite a bit of time for me to master. Is there not an easier way of making a password system? I think that A (see above) seems the easiest for me at the moment and D (see above) would be nice if I could just figure out how to use the javadoc.

  • What is the easiest way to transfer music from my ex's itunes library to mine? We both have Macbooks and we do have home sharing.

    Over the years my ex's and I bought tons of music off itunes, but always bought it on her Macbook. Now that we aren't together I want to copy all of the music from her itunes library and import it into mine. Is this possible, and what is the easiest way?
    Many Thanks

    the simplest way, assuming all your media files are in the default location, would be to connect the two Macs with a firewire cable, boot the source Mac in Target Disk Mode, and copy the entire iTunes folder (not just the iTunes music folder) from <MacintoshHD>/users/yourname/music on the source to <MacintoshHD>/users/yourname/music on the target (overwriting the iTunes folder in place there).
    that would ensure everything (including playcounts, ratings, original "date added", which home sharing doesn't copy over) will be transferred. it would also ensure that any mobile devices (iPhone, etc.) will simply keep on syncing without problems.
    you can also use an external HD (or your LAN) but make sure to copy the entire iTunes folder.

  • What is the easiest way to assemble forms in Swing ?

    Dear friends,
    I�m doing a nice job with GridBagLayout, and my forms are well designed as well.....
    but now I have to share my tasks with some other guys without swing experience... and I�m afraid to teach GridBagLayout will cause more problems than productivity....
    I have decided to use some framework or another layout manager,....
    can you tell me what is the easiest way to construct forms in Swing ??
    best regards,
    Felipe Ga�cho

    First off, make them learn GridBagLayout as well as the other layout managers (like BorderLayout). Have them play around with JBuilder's visual editor, making note of what changes visually do to the underlying code, etc. It will serve them well.
    I have yet to find an "easier" layout manager that doesn't at some point tie your hands and end up making life more difficult. With GridBagLayout, BorderLayout and use of subcontainers, you can do anything you might need. :-)
    I wouldn't say absolute positioning is anti-Java.
    It's certainly more work to deal with in most cases.
    . You can always get the screen resolution and
    adjust your sizes accordingly. It's still 100% pure
    Java code. It is anti in that it doesn't follow the general spirit of Java. Yes it will be 100% Java code, but it will be at least 90% crap as well. :-) You then can't easily do localization, changes in the look & feel mess up your app, your components won't resize properly, any change to a label's text causes you to have to tweak everything, etc. Ghastly stuff. It is the lazy way to get the GUI to look like someones mock up, but that is all it's good for.
    If you run across a GUI done with absolute positioning, you have my permission to give the responsible developer an atomic wedgie.

  • I am using Iphoto 11 ver 9.4.3 on mac using oxs 10.8.5 i want to export calendar projects to an external hard drive. what is the easiest way to do this? i have tried export and import but it didn't seem to work.

    I am using Iphoto 11 ver 9.4.3 on mac using oxs 10.8.5 i want to export calendar projects to an external hard drive. my goal is to store them in an external hard drive so it doesn't use up memory on the mac hard drive. is it possible to copy the specific projects without copying the entire library? what is the easiest way to do this? i have tried export and import but it didn't seem to work.

    What do you not understand?
    You can duplicate the iPhoto library (command - D ) and delete everything except the project and its photos from the copy and move that
    Or
    However the calendar takes very little space - it is simpy database entries - it is the photos in the calendar that take space - and for most people you would wnat to keep those photos in your library
    you can use a photo in 50 calendars and it still is only one photo in your library - as I explained calenders do not exist as such - they are simply database entries telling iPhotop how to display the calendar - they take almost no space at all
    LN

  • I want to use 1 itunes account but with 3 different iphones 2 for the kids and one for me, what is the easiest way to do that?

    I want to use 1 itunes account but sync 3 different iphones, 2 for the kids and 1 for me.  So I would like to have different programs, songs, apps etc for each phone.  What is the easiest way to do that

    Agreed heather. Also, if you have three users on the same account how do you keep phone calls and messages from going to all three phones?

  • I have a mid year 2007 24 inch iMac and will be purchasing a new 27 inch Retina iMac, what is the easiest way to transfer the data and files from my old machine to the new one?

    I have a mid year 2007 24 inch iMac and will be purchasing a new 27 inch Retina iMac, what is the easiest way to transfer the data and files from my old machine to the new one?

    Following up on this thread,
    I have a new iMac on the way and my current is from 2008, never had a problem but I am sure there are internal issues that I would prefer not to transfer.
    I have no issues other then the slowness in certain programs and that is the main reason to buy a new one.
    Programs like numbers and pages seem to take a longer time to open after I update to Yosemite.
    I only use 272GB of 500 GB, my memory is 4GB and I am upgrading to 8Gb and bought the 4.0 processor.
    Question:
    Is there a way to manually transfer items or would that be a waste of time in that if there are issues they could be anywhere and would transfer anyway?

  • What is the easiest way to burn imovies onto DVD's.   I want to burn more than one movie onto DVD as I create.    Can I continue to burn onto the same DVD as the movies are created?

    What is the easiest way to burn my imovies onto DVD's?    I want to burn movies as I create them and then continue to add more movies to the same DVD as the years go by -- until the DVD is full!    Is this possible?

    You might also want to post this in the iMovie forum https://discussions.apple.com/community/ilife/imovie

  • What is the easiest way to transfer a large imovie project from one computer to another in a different location.

    What is the easiest way to transfer an faairly large HD imovie project from one computer to another in a different location. Can you export to drop box? Will the other computer need the exact imovie version?

    OK it depends.
    If you have a finished movie, you can SHARE/EXPORT MOVIE and create your final movie. Then, depending on the size of the finished movie, you can transfer via dropbox or similar service. Ninety minutes is a very long movie for iMovie, but it may work for you. I would suggest 720P to keep the size down.
    If you need to transfer the entire iMovie Project so it can be edited in iMovie at the other end, then you need to transfer the project and event assets to an external hard drive and get the hard drive to the other location.
    Directions are here. Follow the directions for 1) Moving or copying Project to external drive. Then 2) Consolidate Media.
    https://discussions.apple.com/docs/DOC-4141

  • What is the easiest way to create alias email addresses in exchange 2013?

    For example my official domain is [email protected]
    Within my company i want to make it look like certain departments are sending from bicycles.com skateboards.com
    and skooters.com and receive to those addresses even though the emails are really going through the
    [email protected] domain. but it appears to be coming from three other domains.
    appearance is everything. What is the easiest way to accomplish this.
    Step by step with examples if possible. I am not well versed in exchange server 2013 yet.
    Droid Hacker

    In Exchange 2013 you can use the ECP to add additional email addresses to mailboxes. In order for a mailbox to send using an address, that address needs to be set as the reply address. One mailbox cannot send as multiple addresses. Doing that would require
    a mailbox for each address. To set a new primary address on a mailbox log into the ECP and choose mailboxes under the recipients option on the left. Then search for the mailbox you want to add the address to and click the edit symbol. Navigate to the
    Email Address tab on the left. To set a new primary address you will likely need uncheck the box for "Automatically update email addresses based on the email address policy applied to this recipient". Then click the plus button, enter the new address,
    and check the box for "Make this the reply address"
    Before you do this you should ensure that the proper MS records exist for these other domains, and that they are properly configured for mail flow. Once you set this as the reply address for a mailbox, that is the address external users will use for replies.

  • What's the easiest way to add storage to a mac mini. (1TB hard drive but only 32G of real storage). External device, internal or partitioning?

    What's the easiest way to add storage to a mac mini. (1TB hard drive but only 32G of real storage). External device, internal or is there some way to partition? I tried doing so but received a message that there wasn't enough free space to partition. Seems like a 1TB drive should have more storage than my Ipad

    Its worth confirming what free space you have on your drive: 
    go to:   Apple Menu > About this Mac >  More Info > Storage
    The bar chart shows how much free space there is on the drive:
    Please realise that partitioning does not create extra space so this wont help you.
    If your free space is less than 20 % you should get extra storage with an external USB or Firewire drive, any make or model will work.

  • What's the easiest way to move app data and data structures to a server?

    Hi guys,
    I've been developing my app locally with Apex 4.2 and Oracle 11g XE on Windows 7. It's getting close to the time to move the app to an Oracle Apex server. I imagine Export/Import is the way to move the app. But what about the app tables and data (those tables/data like "customer" and "account" created specifically for the app)? I've been using a data modeling tool, so I can run a DDL script to create the data structures on the server. What is the easiest way to move the app data to the server? Is there a way to move both structures and data in one process?
    Thanks,
    Kim

    There's probably another way to get here, but, in SQL Developer, on the tree navigation, expand the objects down to your table, right click, then click EXPORT.. there you will see all the options. This is a tedious process and it sucks IMO, but yeah, it works. It sucks mostly because 1) it's one table at a time, 2) if your data model is robust and has constraints, and sequences and triggers, then you'll have to disable them all for the insert, and hope that you can re-enable constraints, etc without a glitch (good luck, unless you have only a handful of tables)
    I prefer using the oracle command line EXP to export an entire schema, then on the target server I use IMP to import the schema. That way, it's near exact. This makes life messy if you develop more than one application in a single schema, and I've felt that pain -- however -- it's a whole lot easier to drop tables and other objects than it is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. just blow away what you don't want on the target after the fact..)
    You could use oracle's datapump method too.
    Alternatively, what can be done, IF you have access to both servers from your SQL developer instance (or if you can tnsping them both already from the command line, you can use SQL*PLUS), is run a script that will identify your apex apps' objects (usually by prefix to object names, like EBA_PROJ_%, etc) and do all the manual work for you. I've created a script that does exactly this so that I can move data from dev to prod servers over a dblink. It's tricky because of the order that must be executed to disable constraints and then re-enable them, and of course, trickier if you don't consistently prefix ALL of your "application objects"... (tables, views, triggers, sequences, functions, procs, indexes, etc)

  • What is the easiest way to restore to a previous backup of Time Machine?

    I was adding some simple album cover artwork to my iTunes collection when the computer locked up. I got the spinning beach ball and was unable to "force quit." So, I did a re-boot using the power key. I then launched iTunes and it opened properly with all the new Album Artwork. The files were not large in size and the "Album Artwork" folder is only 99.8MB.
    I did a Time Machine backup yesterday and the only thing changed on the computer was the artwork. However, when Time Machine launched to do a backup it said there was 30GB(!!!) to back up?!?!?
    I am assuming something got corrupted in the iTunes library file during the crash and now it thinks it has to back up part of the music.
    So, that is what caused the problem. My question is, what is the easiest way to simply restore the backup the Time Machine had completed yesterday before all this happened?? It doesn't seem like there is a simple way to accomplish this. It looks like TM is used to back up specific files or folders and not to restore the computer to a previous state.
    Any help is much appreciated.
    Thanks in advance!!

    Time Machine backs up all files except those you exclude in TM prefs. It doesn't "know" what kind a file is; it just compares info about a file on the source drive to see if it has already been backed up, or if it is new or has changed and needs to be backed up again. For unchanged files or folders, TM simply creates another hard link on the backup drive.
    iTunes artwork files are separate files. The assignments of artwork to particular music files are saved in another file within the iTunes application (which is actually a package, a folder containing other files). So if all you did was add album artwork, TM would back up each new artwork file, and a new copy of the hidden file within the iTunes application containing the artwork-music links.
    The following is speculation on my part, but it seems logical:
    TM uses records in the hidden File System Events log to identify any new or modified files. However, it is possible to have an FSE entry as to a particular file without modifying the file (e.g. open, then close). So TM doesn't "know" until it actually compares the source file with the backup file (if one exists) whether a file is new or has been modified.
    Hope this helps.

Maybe you are looking for