Thanks. That's great.
One more twist. The integer in that position could be up to 3 characters, so I will
have to determine it's size before substringing it.
Any thoughts on how to do this?
>>I'm gonna convert it to an int.
>>
>>There will always be a number in this position.
>>
>>
>>>>
string s = "+OK 1 2729"
>>>>
>>>>How do I parse the '1' from the above string?
>>>
>>>What do you want to do with it? Remove it? Obtain the value that is always in that space?
>
>I'm assuming the string will always be the same length, or at least the character in question will always be in position 5. I'll also assume the character will always been one character.
>
>This is in VB:
>
> Dim test As String
> Dim result As Integer
>
> test = "+OK 1 2729"
>
> If Integer.TryParse(test.Substring(4, 1), result) = True Then
> 'result now contains the integer
> MsgBox(result.ToString)
> Else
> 'value could not be converted
> End If
>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people