<?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: Remove character from number VBscript</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 01:19:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/#comment-94052</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 08 Jul 2011 17:32:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-94052</guid>
		<description><![CDATA[It seems that you have solved the issue.

Thanks for sharing your solution.]]></description>
		<content:encoded><![CDATA[<p>It seems that you have solved the issue.</p>
<p>Thanks for sharing your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssergio25</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/#comment-94048</link>
		<dc:creator>ssergio25</dc:creator>
		<pubDate>Fri, 08 Jul 2011 16:57:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-94048</guid>
		<description><![CDATA[OK the actual code:

&#039;STEP 1 WMI Call
&#039;*************************************************
strComputer = &quot;.&quot; 
Set objWMIService = GetObject(&quot;winmgmts:\&quot; &amp; strComputer &amp; &quot;rootCIMV2&quot;) 
Set colItems = objWMIService.ExecQuery( _
    &quot;SELECT * FROM Win32_OperatingSystem&quot;,,48) 
For Each objItem in colItems         
        OS = objItem.Version
Next

OS_Installed = Left(CStr(OS),3)................&#039;THIS LINE IS THE ONE THAT SOLVED MY ISSUE, i HAD TO CONVERT &quot;OS&quot; TO A STRING IN ORDER TO USE THE LEFT FUNCTION



&#039;STEP 2 OS found is XP
&#039;***************************************************

If OS_Installed = &quot;6.1&quot; Then
WritetoLog &quot;OS is Windows 7 Version Number &quot; &amp; OS_Installed
&#039;CONTINUE HERE WITH YOUR OWN LOGIC
End If



&#039;STEP 3 OS found is WINDOWS 7
&#039;***************************************************

If OS_Installed = &quot;5.1&quot; Then
WritetoLog &quot;OS is Windows XP Version Number &quot; &amp; OS_Installed
&#039;CONTINUE HERE WITH YOUR OWN LOGIC
End If]]></description>
		<content:encoded><![CDATA[<p>OK the actual code:</p>
<p>&#8216;STEP 1 WMI Call<br />
&#8216;*************************************************<br />
strComputer = &#8220;.&#8221;<br />
Set objWMIService = GetObject(&#8220;winmgmts:\&#8221; &amp; strComputer &amp; &#8220;rootCIMV2&#8243;)<br />
Set colItems = objWMIService.ExecQuery( _<br />
    &#8220;SELECT * FROM Win32_OperatingSystem&#8221;,,48)<br />
For Each objItem in colItems<br />
        OS = objItem.Version<br />
Next</p>
<p>OS_Installed = Left(CStr(OS),3)&#8230;&#8230;&#8230;&#8230;&#8230;.&#8217;THIS LINE IS THE ONE THAT SOLVED MY ISSUE, i HAD TO CONVERT &#8220;OS&#8221; TO A STRING IN ORDER TO USE THE LEFT FUNCTION</p>
<p>&#8216;STEP 2 OS found is XP<br />
&#8216;***************************************************</p>
<p>If OS_Installed = &#8220;6.1&#8243; Then<br />
WritetoLog &#8220;OS is Windows 7 Version Number &#8221; &amp; OS_Installed<br />
&#8216;CONTINUE HERE WITH YOUR OWN LOGIC<br />
End If</p>
<p>&#8216;STEP 3 OS found is WINDOWS 7<br />
&#8216;***************************************************</p>
<p>If OS_Installed = &#8220;5.1&#8243; Then<br />
WritetoLog &#8220;OS is Windows XP Version Number &#8221; &amp; OS_Installed<br />
&#8216;CONTINUE HERE WITH YOUR OWN LOGIC<br />
End If</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/#comment-94047</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 08 Jul 2011 16:31:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-94047</guid>
		<description><![CDATA[Since we don&#039;t have enough information, this is only a guess:

The value coming from the WMI call is probably not a string, but some type of object.]]></description>
		<content:encoded><![CDATA[<p>Since we don&#8217;t have enough information, this is only a guess:</p>
<p>The value coming from the WMI call is probably not a string, but some type of object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/#comment-94046</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 08 Jul 2011 16:28:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-94046</guid>
		<description><![CDATA[Sergio, pseudocode will not help trying to find the error.  Why don&#039;t you post your actual code ?

If your code is giving errors, in order to help you we need to know:
-Your code
-The exact error messages your are getting.]]></description>
		<content:encoded><![CDATA[<p>Sergio, pseudocode will not help trying to find the error.  Why don&#8217;t you post your actual code ?</p>
<p>If your code is giving errors, in order to help you we need to know:<br />
-Your code<br />
-The exact error messages your are getting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thefinder</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/#comment-94012</link>
		<dc:creator>thefinder</dc:creator>
		<pubDate>Thu, 07 Jul 2011 22:51:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-94012</guid>
		<description><![CDATA[I too would like to see some of your code thus far, I think I know how to help you but would like to see what you&#039;re doing so far.]]></description>
		<content:encoded><![CDATA[<p>I too would like to see some of your code thus far, I think I know how to help you but would like to see what you&#8217;re doing so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/remove-character-from-number-vbscript/#comment-93971</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 06 Jul 2011 22:57:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-93971</guid>
		<description><![CDATA[1.5.600 &lt;b&gt;is&lt;/b&gt; a string.

Can you post your code ?  Are you getting errors ?

Also, are you going to do this to other values ?  if so, are the dots in fixed positions ?

Please provide more details.]]></description>
		<content:encoded><![CDATA[<p>1.5.600 <b>is</b> a string.</p>
<p>Can you post your code ?  Are you getting errors ?</p>
<p>Also, are you going to do this to other values ?  if so, are the dots in fixed positions ?</p>
<p>Please provide more details.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.011 seconds using memcached
Object Caching 339/340 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 02:46:05 -->