convert string[] to int[]

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jake

    #1

    convert string[] to int[]

    Is there any way (other then using a loop) to convert a string array to an
    int array? Any help would be great. thanks

    :// Jake
  • Cor Ligthert

    #2
    Re: convert string[] to int[]

    Jay,
    [color=blue]
    > Is there any way (other then using a loop) to convert a string array to an
    > int array? Any help would be great. thanks
    >[/color]
    No, however how much work is that, in addition what do you think that when
    there was a method build for you, which would look the same as yours, what
    was than done behind the scene?

    It does not help, however before you seach to long.

    Cor


    Comment

    • Jake

      #3
      Re: convert string[] to int[]

      I didn't think there was. I just thought it would be cool if you could do
      something like:
      string[] x = {"0", "3", "32", "98", "87"};
      int[] y = int[].Parse(x);

      **shrug** guess I'll just do a loop.

      thanks

      "Cor Ligthert" wrote:
      [color=blue]
      > Jay,
      >[color=green]
      > > Is there any way (other then using a loop) to convert a string array to an
      > > int array? Any help would be great. thanks
      > >[/color]
      > No, however how much work is that, in addition what do you think that when
      > there was a method build for you, which would look the same as yours, what
      > was than done behind the scene?
      >
      > It does not help, however before you seach to long.
      >
      > Cor
      >
      >
      >[/color]

      Comment

      Working...