+ Reply to Thread
Results 1 to 2 of 2

converting from a string to integer in an array

  1. #1
    Forum Contributor
    Join Date
    03-13-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    136

    converting from a string to integer in an array

    I have the following line:

    Please Login or Register  to view this content.
    OPYrs.Value is a string "1,5,10,15,20,30"
    Split creates an array with 6 elements as strings "1" "5" "10" etc.

    Is there a quick way in that line of code to convert each element to an integer value and storing that in the array "OutputYrs"?

  2. #2
    Forum Contributor
    Join Date
    03-13-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    136

    Re: converting from a string to integer in an array

    Well I actually ended up doing this.

    Please Login or Register  to view this content.
    Is there an easier way to do it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1