<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body data-pinterest-extension-installed="ff1.37.9" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
Can I extract numbers from strings? I mean does the following code work?<br>
<br>
msg="P=034";<br>
val=0 + msg.SubString(2,3);<br>
if (val > 10) {<br>
   // It works<br>
} else {<br>
   // How can I achieve that?<br>
}<br>
<br>
(I'm using status to get multiple values  for a progress bar in the following format)<br>
<4 letters for the progress type>:<3digits current value>:<3digits max value><br>
- The 4 letters are for the bar type<br>
- The current value is the completion (either percentage or script number being run)<br>
- The max value is 100 for percentage or the number of scripts to be processed.<br>
<br>
If I display the value, it s "#NULL" ....<br>
<br>
Thanks for any tips on how to get the value as a number in order to help me to draw the progressbar gauge.<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma">-- <br>
   Olivier LAHAYE<br>
   CEA DRT/LIST/DIR</font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>