<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Extract Only Numbers (VB Function)</title>
	<atom:link href="http://www.rolbe.com/2009/03/06/extract-only-numbers-vb-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rolbe.com/2009/03/06/extract-only-numbers-vb-function/</link>
	<description>A Web Development blog by Ryan Olbe</description>
	<lastBuildDate>Sat, 08 Oct 2011 22:00:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: steve0</title>
		<link>http://www.rolbe.com/2009/03/06/extract-only-numbers-vb-function/comment-page-1/#comment-77</link>
		<dc:creator>steve0</dc:creator>
		<pubDate>Fri, 06 Mar 2009 22:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.rolbe.com/?p=1654#comment-77</guid>
		<description>This is what I use...
&lt;pre class=&quot;brush:vb;&quot;&gt;
Function x(ByVal s$) As Double
 Dim i As Long
 Dim sTmp$
 For i = 1 To Len(s$)
  If IsNumeric(Mid(s$, i, 1)) Then
   sTmp$ = sTmp$ &amp; Mid(s$, i, 1)
  End If
 Next 
 x = Val(sTmp$)
End Function
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is what I use...</p>
<pre class="brush:vb;">
Function x(ByVal s$) As Double
 Dim i As Long
 Dim sTmp$
 For i = 1 To Len(s$)
  If IsNumeric(Mid(s$, i, 1)) Then
   sTmp$ = sTmp$ &amp; Mid(s$, i, 1)
  End If
 Next
 x = Val(sTmp$)
End Function
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Ritch</title>
		<link>http://www.rolbe.com/2009/03/06/extract-only-numbers-vb-function/comment-page-1/#comment-76</link>
		<dc:creator>Kevin Ritch</dc:creator>
		<pubDate>Fri, 06 Mar 2009 19:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.rolbe.com/?p=1654#comment-76</guid>
		<description>Here&#039;s another approach:
&lt;pre class=&quot;brush:vb;&quot;&gt;
Function MyNum(S As String) As Double
 For i = 1 To Len(S)
  N = N &amp; IIf(InStr(&quot;1234567890&quot;, Mid$(S, i, 1)), Mid$(S, i, 1),  &quot;&quot;)
 Next i
 MyNum = Val(N)
End Function
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here's another approach:</p>
<pre class="brush:vb;">
Function MyNum(S As String) As Double
 For i = 1 To Len(S)
  N = N &amp; IIf(InStr("1234567890", Mid$(S, i, 1)), Mid$(S, i, 1),  "")
 Next i
 MyNum = Val(N)
End Function
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

