C# Input string was not in a correct format int32
<p>I am having problems with formats and converting.</p>

<p>I have tried all workarounds and nothing.</p>

<p><strong>Code snippet where I think the error is</strong></p>

<pre><code>label_Map.Text = message.Substring(21, 3);
label_Sys.Text = message.Substring(15, 3);
label_Dia.Text = message.Substring(18, 3);
label_Pulse.Text = message.Substring(26, 3);

SaveData(
    Int32.Parse(message.Substring(15, 3)),
    Int32.Parse(message.Substring(18, 3)),
    Int32.Parse(message.Substring(26, 3)));
</code></pre>

<p><strong>Example input string</strong></p>

<pre><code>S1;A0;C03;M00;P120080100;R075;T0005;;D2
</code></pre>

<p><strong>End of errorcode</strong></p>

<pre><code>InnerException: System.FormatException    
Message=Input string was not in a correct format.   
Source=mscorlib   
StackTrace:  
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number,  NumberFormatInfo info, Boolean parseDecimal)  
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)  
at NIBP2PC.Form1.display(String message) in C:\Users\bazinga\Desktop\spiediena_merisana\NIBP2PC_c#\NIBP2PC\Form1.cs:line 427
</code></pre>
