<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1642115484247033477</id><updated>2024-09-09T13:52:40.913-07:00</updated><title type='text'>Kamesh-QTP-VBScript-learners</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>115</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-8553967776592272005</id><published>2018-12-06T00:03:00.002-08:00</published><updated>2018-12-06T00:03:59.069-08:00</updated><title type='text'>How to find repeated character from given dynamic string</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Courier New; font-size: 10pt;&quot;&gt;str=&lt;span style=&quot;color: grey;&quot;&gt;&quot;i am busy at work in my company&quot;&lt;/span&gt;&lt;br /&gt;str=&lt;span style=&quot;color: blue;&quot;&gt;Replace&lt;/span&gt;(str,&lt;span style=&quot;color: grey;&quot;&gt;&quot; &quot;&lt;/span&gt;,&lt;span style=&quot;color: grey;&quot;&gt;&quot;&quot;&lt;/span&gt;)&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt; i=&lt;span style=&quot;color: maroon;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;To&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Len&lt;/span&gt;(str)-&lt;span style=&quot;color: maroon;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;If&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Len&lt;/span&gt;(str)=&lt;span style=&quot;color: maroon;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; Exit&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;&amp;nbsp;k=&lt;span style=&quot;color: blue;&quot;&gt;Mid&lt;/span&gt;(str,&lt;span style=&quot;color: maroon;&quot;&gt;1&lt;/span&gt;,&lt;span style=&quot;color: maroon;&quot;&gt;1&lt;/span&gt;)&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;If&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;InStr&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;Right&lt;/span&gt;(str,&lt;span style=&quot;color: blue;&quot;&gt;Len&lt;/span&gt;(str)-&lt;span style=&quot;color: maroon;&quot;&gt;1&lt;/span&gt;),k)&amp;gt;&lt;span style=&quot;color: maroon;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;br /&gt;&amp;nbsp; str2=str2&amp;amp;k&lt;br /&gt;&amp;nbsp; str=&lt;span style=&quot;color: blue;&quot;&gt;Replace&lt;/span&gt;(str,k,&lt;span style=&quot;color: grey;&quot;&gt;&quot;&quot;&lt;/span&gt;)&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; Else&lt;/span&gt;&lt;br /&gt;&amp;nbsp; str=&lt;span style=&quot;color: blue;&quot;&gt;Replace&lt;/span&gt;(str,k,&lt;span style=&quot;color: grey;&quot;&gt;&quot;&quot;&lt;/span&gt;)&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New; font-size: 10pt;&quot;&gt;MsgBox str2&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/8553967776592272005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2018/12/how-to-find-repeated-character-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/8553967776592272005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/8553967776592272005'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2018/12/how-to-find-repeated-character-from.html' title='How to find repeated character from given dynamic string'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-4747211596012696618</id><published>2014-12-19T04:37:00.000-08:00</published><updated>2014-12-19T04:37:27.789-08:00</updated><title type='text'>solution for &quot;the requested operation requires elevation&quot; error while opening QTP through AOM</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Open Regedit and go to below path&lt;br /&gt;
&lt;br /&gt;
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]&lt;br /&gt;
&lt;br /&gt;
change the &quot;EnableLUA&quot;value to 0&lt;br /&gt;
&lt;br /&gt;
save and restart the system.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/4747211596012696618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2014/12/solution-for-requested-operation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4747211596012696618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4747211596012696618'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2014/12/solution-for-requested-operation.html' title='solution for &quot;the requested operation requires elevation&quot; error while opening QTP through AOM'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-1003548168494184625</id><published>2014-05-29T01:24:00.001-07:00</published><updated>2014-05-29T01:24:50.035-07:00</updated><title type='text'>Getting running applications names from task manager</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Set Word = CreateObject(&quot;Word.Application&quot;)&lt;br /&gt;Set Tasks = Word.Tasks&lt;br /&gt;For Each Task in Tasks&lt;br /&gt;&amp;nbsp;&amp;nbsp; If Task.Visible Then msgbox Task.Name&lt;br /&gt;Next&lt;br /&gt;Word.Quit&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/1003548168494184625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2014/05/getting-running-applications-names-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/1003548168494184625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/1003548168494184625'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2014/05/getting-running-applications-names-from.html' title='Getting running applications names from task manager'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-4915041802457898346</id><published>2013-08-29T05:59:00.003-07:00</published><updated>2013-08-29T05:59:27.254-07:00</updated><title type='text'>Download files from one of the folder of QC test Resiurces tab through API</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV-SOCoH6IqnGyA7NLFOpXSHMlGbzXdSlYmMgwXGh2V06cFWzQcEdWHQmmXjVDsznuc-8Yd1OlyNOIlAMVcfb8h8H2QqnUZbRpMkbOyRo3vQ0BszWtzYAlVuLsYajnWXMD3jLL0_6wtURF/s1600/DownloadFilesFromQcResourceTab.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;440&quot; osa=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV-SOCoH6IqnGyA7NLFOpXSHMlGbzXdSlYmMgwXGh2V06cFWzQcEdWHQmmXjVDsznuc-8Yd1OlyNOIlAMVcfb8h8H2QqnUZbRpMkbOyRo3vQ0BszWtzYAlVuLsYajnWXMD3jLL0_6wtURF/s640/DownloadFilesFromQcResourceTab.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/4915041802457898346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/08/download-files-from-one-of-folder-of-qc_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4915041802457898346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4915041802457898346'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/08/download-files-from-one-of-folder-of-qc_29.html' title='Download files from one of the folder of QC test Resiurces tab through API'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV-SOCoH6IqnGyA7NLFOpXSHMlGbzXdSlYmMgwXGh2V06cFWzQcEdWHQmmXjVDsznuc-8Yd1OlyNOIlAMVcfb8h8H2QqnUZbRpMkbOyRo3vQ0BszWtzYAlVuLsYajnWXMD3jLL0_6wtURF/s72-c/DownloadFilesFromQcResourceTab.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-3734241219005222009</id><published>2013-01-24T23:51:00.001-08:00</published><updated>2013-01-24T23:51:23.510-08:00</updated><title type='text'>how to concatenate string with double quotes without using “&amp;” or  “+” and double quotes in vbscripting</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Dim str(2)&lt;br /&gt;str(1)=&quot;Vbscripting&quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;str(0)=Chr(34) &lt;br /&gt;&amp;nbsp; str(2)=Chr(34) &lt;br /&gt;&lt;br /&gt;msgbox join(str,&quot;&quot;)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/3734241219005222009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-concatenate-string-with-double.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3734241219005222009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3734241219005222009'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-concatenate-string-with-double.html' title='how to concatenate string with double quotes without using “&amp;” or  “+” and double quotes in vbscripting'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-8812619256866993868</id><published>2013-01-24T23:20:00.000-08:00</published><updated>2013-01-24T23:20:31.472-08:00</updated><title type='text'>How to split the string without using split function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
str=&quot;i am busy with work&quot;&lt;br /&gt;dim strarray()&lt;br /&gt;Redim preserve strarray(0)&lt;br /&gt;&lt;br /&gt;for i = 1 to len(str)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strchar=mid(str,i,1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if strchar&amp;lt;&amp;gt;&quot; &quot; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRes=strRes &amp;amp; strchar&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End if&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If strchar=&quot; &quot; Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strsize=ubound(strarray)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Redim preserve strarray(strsize+1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;strarray(strsize+1)=strRes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;strRes=&quot;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If len(str)=i Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strsize=ubound(strarray)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Redim preserve strarray(strsize+1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;strarray(strsize+1)=strRes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;for i=1 to ubound(strarray)&lt;br /&gt;print strarray(i)&lt;br /&gt;next&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/8812619256866993868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-split-string-without-using-split.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/8812619256866993868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/8812619256866993868'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-split-string-without-using-split.html' title='How to split the string without using split function'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-3939920679300962894</id><published>2013-01-16T03:45:00.000-08:00</published><updated>2013-01-16T03:45:07.509-08:00</updated><title type='text'>How to swap the numbers in array like even numbers are onside and odd numbers are other side withourt using temp array</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;strnum=Array(7,2,5,4,9,8,10,23,12,21)&lt;br /&gt;&lt;br /&gt;for i=0 to UBound(strnum) -1&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; intre= strnum(i) mod 2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If&amp;nbsp; intre &amp;lt;&amp;gt; 0 Then &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; intre1=strnum(i+1) mod 2&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If intre1 = 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; intnumber=strnum(i)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strnum(i)=strnum(i+1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strnum(i+1)=intnumber&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; For j=i+2 to Ubound(strnum)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If&amp;nbsp; strnum(j) mod 2 =0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; intnumber=strnum(i)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strnum(i)=strnum(j)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; strnum(j)=intnumber&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Exit for&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; End If&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Next&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; End if&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; End if&lt;br /&gt;&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;For i=0 to Ubound(strnum)&lt;br /&gt;print&amp;nbsp; strnum(i)&lt;br /&gt;&lt;br /&gt;Next&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/3939920679300962894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-swap-numbers-in-array-like-even.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3939920679300962894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3939920679300962894'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-swap-numbers-in-array-like-even.html' title='How to swap the numbers in array like even numbers are onside and odd numbers are other side withourt using temp array'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-4368987904730956562</id><published>2013-01-10T03:15:00.000-08:00</published><updated>2013-01-10T03:15:49.183-08:00</updated><title type='text'>How to check whether any Polidrome words are there in given string without using strReverse function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
msgbox CheckPalindromeString(&quot;Hi madam how is you son oho&quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function CheckPalindromeString(Str)&lt;br /&gt;
Dim strPlidrome ,strPlidrome_Name&lt;br /&gt;
strPlidrome=0&lt;br /&gt;
strwords=split(Str,&quot; &quot;)&lt;br /&gt;
for j=0 to Ubound(strwords) &lt;br /&gt;
&lt;br /&gt;
For i = Len(strwords(j)) To 1 Step -1&lt;br /&gt;
Str2 = Str2 + Mid(strwords(j), i, 1)&lt;br /&gt;
Next&lt;br /&gt;
If strcomp(strwords(j),Str2)=0 Then&lt;br /&gt;
strPlidrome=strPlidrome+1&lt;br /&gt;
If strPlidrome&amp;lt;&amp;gt;1Then&lt;br /&gt;
strPlidrome_Name=strPlidrome_Name &amp;amp; &quot; , &quot;&amp;amp; strwords(j)&lt;br /&gt;
Else&lt;br /&gt;
strPlidrome_Name= strwords(j)&lt;br /&gt;
End If &lt;br /&gt;
End If&lt;br /&gt;
Str2=&quot;&quot;&lt;br /&gt;
&lt;br /&gt;
Next&lt;br /&gt;
CheckPalindromeString= &quot;Polidrome words : &quot; &amp;amp; strPlidrome &amp;amp; &quot; ; &quot; &amp;amp; strPlidrome_Name&lt;br /&gt;
&lt;br /&gt;
End Function&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/4368987904730956562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-check-whether-any-ploidrome.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4368987904730956562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4368987904730956562'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/how-to-check-whether-any-ploidrome.html' title='How to check whether any Polidrome words are there in given string without using strReverse function'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-1405442291403360929</id><published>2013-01-09T04:35:00.000-08:00</published><updated>2013-01-09T04:38:15.090-08:00</updated><title type='text'>Write VbScript code to convert given numbers in to words</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Print CurrencyToWord(623.32)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Function CurrencyToWord(MyNumber)&lt;br /&gt;
Dim Temp&lt;br /&gt;
Dim Rupees, Paisa &lt;br /&gt;
Dim DecimalPlace, iCount&lt;br /&gt;
Dim Hundreds, Words&lt;br /&gt;
ReDim Place(9) &lt;br /&gt;
Place(0) = &quot; Thousand &quot;&lt;br /&gt;
Place(2) = &quot; Lakh &quot;&lt;br /&gt;
Place(4) = &quot; Crore &quot;&lt;br /&gt;
Place(6) = &quot; Arab &quot;&lt;br /&gt;
Place(8) = &quot; Kharab &quot;&lt;br /&gt;
On Error Resume Next&lt;br /&gt;
&lt;br /&gt;
&#39; Convert MyNumber to a string, trimming extra spaces.&lt;br /&gt;
MyNumber = Trim(Str(MyNumber))&lt;br /&gt;
&#39; Find decimal place.&lt;br /&gt;
DecimalPlace = InStr(MyNumber, &quot;.&quot;)&lt;br /&gt;
&#39; If we find decimal place...&lt;br /&gt;
If DecimalPlace &amp;gt; 0 Then&lt;br /&gt;
&#39; Convert Paisa&lt;br /&gt;
Temp = Left(Mid(MyNumber, DecimalPlace + 1) &amp;amp; &quot;00&quot;, 2)&lt;br /&gt;
Paisa = &quot; and &quot; &amp;amp; ConvertTens(Temp) &amp;amp; &quot; Paisa&quot;&lt;br /&gt;
&#39; Strip off paisa from remainder to convert.&lt;br /&gt;
MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
&#39; Convert last 3 digits of MyNumber to ruppees in word.&lt;br /&gt;
Hundreds = ConvertHundreds(Right(MyNumber, 3))&lt;br /&gt;
&#39; Strip off last three digits&lt;br /&gt;
MyNumber = Left(MyNumber, Len(MyNumber) - 3)&lt;br /&gt;
iCount = 0&lt;br /&gt;
Do While MyNumber &amp;lt;&amp;gt; &quot;&quot;&lt;br /&gt;
&#39;Strip last two digits&lt;br /&gt;
Temp = Right(MyNumber, 2)&lt;br /&gt;
If Len(MyNumber) = 1 Then&lt;br /&gt;
Words = ConvertDigit(Temp) &amp;amp; Place(iCount) &amp;amp; Words&lt;br /&gt;
MyNumber = Left(MyNumber, Len(MyNumber) - 1)&lt;br /&gt;
Else&lt;br /&gt;
Words = ConvertTens(Temp) &amp;amp; Place(iCount) &amp;amp; Words&lt;br /&gt;
MyNumber = Left(MyNumber, Len(MyNumber) - 2)&lt;br /&gt;
End If&lt;br /&gt;
iCount = iCount + 2&lt;br /&gt;
Loop&lt;br /&gt;
CurrencyToWord = &quot;Ruppees &quot; &amp;amp; Words &amp;amp; Hundreds &amp;amp; Paisa &amp;amp; &quot; Only.&quot;&lt;br /&gt;
End Function&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#39; Conversion for hundreds&lt;br /&gt;
&lt;br /&gt;
&#39;*************************************…&lt;br /&gt;
Private Function ConvertHundreds(MyNumber)&lt;br /&gt;
Dim Result &lt;br /&gt;
&#39; Exit if there is nothing to convert.&lt;br /&gt;
If MyNumber = 0 Then Exit Function&lt;br /&gt;
&#39; Append leading zeros to number.&lt;br /&gt;
MyNumber = Right(&quot;000&quot; &amp;amp; MyNumber, 3)&lt;br /&gt;
&#39; Do we have a hundreds place digit to convert?&lt;br /&gt;
If Left(MyNumber, 1) &amp;lt;&amp;gt; &quot;0&quot; Then&lt;br /&gt;
Result = ConvertDigit(Left(MyNumber, 1)) &amp;amp; &quot; Hundreds &quot;&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
&#39; Do we have a tens place digit to convert?&lt;br /&gt;
If Mid(MyNumber, 2, 1) &amp;lt;&amp;gt; &quot;0&quot; Then&lt;br /&gt;
Result = Result &amp;amp; ConvertTens(Mid(MyNumber, 2))&lt;br /&gt;
Else&lt;br /&gt;
&#39; If not, then convert the ones place digit.&lt;br /&gt;
Result = Result &amp;amp; ConvertDigit(Mid(MyNumber, 3))&lt;br /&gt;
End If&lt;br /&gt;
ConvertHundreds = Trim(Result)&lt;br /&gt;
End Function&lt;br /&gt;
&lt;br /&gt;
&#39; Conversion for tens&lt;br /&gt;
&#39;*************************************…&lt;br /&gt;
Private Function ConvertTens(MyTens)&lt;br /&gt;
Dim Result&lt;br /&gt;
&#39; Is value between 10 and 19?&lt;br /&gt;
If (Left(MyTens, 1)) = 1 Then&lt;br /&gt;
Select Case (MyTens)&lt;br /&gt;
Case 10: Result = &quot;Ten&quot;&lt;br /&gt;
Case 11: Result = &quot;Eleven&quot;&lt;br /&gt;
Case 12: Result = &quot;Twelve&quot;&lt;br /&gt;
Case 13: Result = &quot;Thirteen&quot;&lt;br /&gt;
Case 14: Result = &quot;Fourteen&quot;&lt;br /&gt;
Case 15: Result = &quot;Fifteen&quot;&lt;br /&gt;
Case 16: Result = &quot;Sixteen&quot;&lt;br /&gt;
Case 17: Result = &quot;Seventeen&quot;&lt;br /&gt;
Case 18: Result = &quot;Eighteen&quot;&lt;br /&gt;
Case 19: Result = &quot;Nineteen&quot;&lt;br /&gt;
Case Else&lt;br /&gt;
End Select&lt;br /&gt;
Else&lt;br /&gt;
&lt;br /&gt;
&#39; .. otherwise it&#39;s between 20 and 99.&lt;br /&gt;
Select Case (Left(MyTens, 1))&lt;br /&gt;
Case 2: Result = &quot;Twenty &quot;&lt;br /&gt;
Case 3: Result = &quot;Thirty &quot;&lt;br /&gt;
Case 4: Result = &quot;Forty &quot;&lt;br /&gt;
Case 5: Result = &quot;Fifty &quot;&lt;br /&gt;
Case 6: Result = &quot;Sixty &quot;&lt;br /&gt;
Case 7: Result = &quot;Seventy &quot;&lt;br /&gt;
Case 8: Result = &quot;Eighty &quot;&lt;br /&gt;
Case 9: Result = &quot;Ninety &quot;&lt;br /&gt;
Case Else&lt;br /&gt;
End Select&lt;br /&gt;
&#39; Convert ones place digit.&lt;br /&gt;
Result = Result &amp;amp; ConvertDigit(Right(MyTens, 1))&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
ConvertTens = Result&lt;br /&gt;
End Function&lt;br /&gt;
&lt;br /&gt;
Private Function ConvertDigit( MyDigit)&lt;br /&gt;
Select Case (MyDigit)&lt;br /&gt;
Case 1: ConvertDigit = &quot;One&quot;&lt;br /&gt;
Case 2: ConvertDigit = &quot;Two&quot;&lt;br /&gt;
Case 3: ConvertDigit = &quot;Three&quot;&lt;br /&gt;
Case 4: ConvertDigit = &quot;Four&quot;&lt;br /&gt;
Case 5: ConvertDigit = &quot;Five&quot;&lt;br /&gt;
Case 6: ConvertDigit = &quot;Six&quot;&lt;br /&gt;
Case 7: ConvertDigit = &quot;Seven&quot;&lt;br /&gt;
Case 8: ConvertDigit = &quot;Eight&quot;&lt;br /&gt;
Case 9: ConvertDigit = &quot;Nine&quot;&lt;br /&gt;
Case Else: ConvertDigit = &quot;&quot;&lt;br /&gt;
End Select&lt;br /&gt;
End Function&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/1405442291403360929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/write-vbscript-code-to-convert-given.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/1405442291403360929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/1405442291403360929'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2013/01/write-vbscript-code-to-convert-given.html' title='Write VbScript code to convert given numbers in to words'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-563749270986991918</id><published>2012-11-21T23:06:00.001-08:00</published><updated>2012-11-21T23:06:38.647-08:00</updated><title type='text'>User Defined Environment Variables vs Public Variables at Test Level </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When a variable isn&#39;t declared within a function library, you may notice different things: An Environment variable declared within an action can be used by another action, but this statement does not hold true for normal variables (declared via Public, Private, Dim). Any other variable declared in one action cannot be seen in another. Private variables when declared in a function library cannot ...&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/563749270986991918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/user-defined-environment-variables-vs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/563749270986991918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/563749270986991918'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/user-defined-environment-variables-vs.html' title='User Defined Environment Variables vs Public Variables at Test Level '/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-4434153424989938638</id><published>2012-11-21T23:05:00.000-08:00</published><updated>2012-11-21T23:05:30.542-08:00</updated><title type='text'>Difference between Mercury DeviceReplay and Sendkeys</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The Device Replay feature is used to perform mouse and keyboard actions against screen coordinates that are provided. The Device Replay functions are not automatically recorded, but must be programmed manually in the Expert View. &lt;br /&gt;1. Create the Device Replay Object.&lt;br /&gt;Example:&lt;br /&gt;Set DeviceReplay = CreateObject(“Mercury.DeviceReplay”)&lt;br /&gt;&lt;br /&gt;2. Call the desired Device Replay function.&lt;br /&gt;Example:&lt;br /&gt;DeviceReplay.SendString(“Hello, World”)&lt;br /&gt;&lt;br /&gt;3. When done with the Device Replay object, release it.&lt;br /&gt;Example:&lt;br /&gt;Set DeviceReplay = Nothing&lt;br /&gt;&lt;br /&gt;The functions that can be used with the Device Replay object are (all coodinates are relative to the top left corner of the screen):&lt;br /&gt;
&lt;br /&gt;
Mercury DeviceReplay is a powerful utility to simulate keyboard input and also for simulating mouse clicks and movements. Under Java Add-in, you can find the DeviceReplay property. &lt;br /&gt;&lt;br /&gt;We use SendKeys method to send keyboard input/keystrokes to applications that dont have automation interface. We can also send more than one keystroke at a time using Sendkeys method. To send keystrokes x,y and z, you would send the string argument &quot;xyz&quot;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;So, the difference between Mercury DeviceReplay and Sendkeys is&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;SendKeys -&amp;gt; Support only Keyboard Operations&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;DeviceReplay-&amp;gt; Support Keyboard + Mouse Operations like Drag Drop too.&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;b style=&quot;color: #741b47;&quot;&gt;&lt;br /&gt;In addition to that DeviceReplay supports sending multilingual characters and symbols, while sendkeys support limited keyboard operations.&lt;/b&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;b&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;The other operational difference is dependency on QTP software.&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;Mercury.DeviceReplay :- It comes with QTP as a module, so you need QTP on the system and only from QTP action you can use it.&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #134f5c;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;SendKeys :- It could be used in VBS script to simulate keyboard inputs with native windows shell commands. It has no dependency on QTP as such&lt;/span&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/4434153424989938638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/difference-between-mercury-devicereplay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4434153424989938638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4434153424989938638'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/difference-between-mercury-devicereplay.html' title='Difference between Mercury DeviceReplay and Sendkeys'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-3456328524376282633</id><published>2012-11-21T22:58:00.000-08:00</published><updated>2012-11-21T22:58:14.002-08:00</updated><title type='text'>work with the DLL&#39;s in QTP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&#39;Declare FindWindow method &lt;br /&gt;&lt;br /&gt;Extern.Declare micHwnd, &quot;FindWindow&quot;, &quot;user32.dll&quot;, &quot;FindWindowA&quot;, micString, micString &lt;br /&gt;&lt;br /&gt;&#39;Declare SetWindowText method &lt;br /&gt;&lt;br /&gt;Extern.Declare micLong, &quot;SetWindowText&quot;, &quot;user32.dll&quot;, &quot;SetWindowTextA&quot;, micHwnd, micString &lt;br /&gt;&lt;br /&gt;&#39;Get HWND of the Notepad window &lt;br /&gt;&lt;br /&gt;hwnd = Extern.FindWindow(&quot;MicrosoftExcel&quot;, vbNullString) &lt;br /&gt;&lt;br /&gt;if hwnd = 0 then &lt;br /&gt;&lt;br /&gt;MsgBox &quot;Notepad window not found&quot; &lt;br /&gt;else&lt;br /&gt;msgbox hwnd&lt;br /&gt;&lt;br /&gt;end if &lt;br /&gt;&lt;br /&gt;&#39;Change the title of the notepad window &lt;br /&gt;&lt;br /&gt;res = Extern.SetWindowText(hwnd, &quot;kuku&quot;) &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/3456328524376282633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/work-with-dlls-in-qtp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3456328524376282633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3456328524376282633'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/work-with-dlls-in-qtp.html' title='work with the DLL&#39;s in QTP'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-4117159095568034032</id><published>2012-11-21T22:57:00.001-08:00</published><updated>2012-11-21T22:57:19.357-08:00</updated><title type='text'>set Off for Image capture while execution from QTP options</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Rem&amp;nbsp; Using below option to uncheck ImageCapture Option &lt;br /&gt;Set qtpobj=Createobject(&quot;Quicktest.application&quot;)&lt;br /&gt;qtpobj.Options.Run.ImageCaptureForTestResults= &quot;Never&quot;&lt;br /&gt;Set qtpobj=Nothing&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/4117159095568034032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/set-off-for-image-capture-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4117159095568034032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/4117159095568034032'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/set-off-for-image-capture-while.html' title='set Off for Image capture while execution from QTP options'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-8535350220673966688</id><published>2012-11-21T22:56:00.000-08:00</published><updated>2012-11-21T22:56:40.893-08:00</updated><title type='text'>To set automatically detect settings On/Off in IE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&#39;Example use of IEautomaticallydetect &lt;br /&gt;&amp;nbsp;IEautomaticallydetect&amp;nbsp; &quot;off&quot; &lt;br /&gt;&amp;nbsp;IEautomaticallydetect&amp;nbsp; &quot;show&quot; &lt;br /&gt;&amp;nbsp;IEautomaticallydetect&amp;nbsp; &quot;on&quot; &lt;br /&gt;&amp;nbsp;IEautomaticallydetect&amp;nbsp; &quot;show&quot; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;&amp;nbsp;SUB IEautomaticallydetect (status) &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;DIM sKey,sValue,binaryVal &lt;br /&gt;&amp;nbsp;Dim oReg &lt;br /&gt;&amp;nbsp;Set oReg=GetObject( &quot;winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv&quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;Const HKCU=&amp;amp;H80000001 &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;sKey = &quot;Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections&quot; &lt;br /&gt;&amp;nbsp;sValue = &quot;DefaultConnectionSettings&quot; &amp;nbsp; &lt;br /&gt;&amp;nbsp;oReg.GetBinaryValue HKCU, sKey, sValue, binaryVal &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;select case lcase(status) &lt;br /&gt;&amp;nbsp;&amp;nbsp; case &quot;on&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; binaryVal(8) = binaryVal(8) OR 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;Force Autodetect on &lt;br /&gt;&amp;nbsp;&amp;nbsp; case &quot;off&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; binaryVal(8) = binaryVal(8) XOR 8&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;Force Autodetect off &lt;br /&gt;&amp;nbsp;&amp;nbsp; case &quot;show&quot; print&amp;nbsp; &quot;Automatically detect is set to &quot; &amp;amp; ((binaryVal(8) and 8) = 8) &lt;br /&gt;&amp;nbsp;&amp;nbsp; case else&amp;nbsp;&amp;nbsp;&amp;nbsp; print&amp;nbsp; &quot;Invalid parameter - IEautomaticallydetect&amp;nbsp; on, off or show&quot; &lt;br /&gt;&amp;nbsp;end select &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;if lcase(status)=&quot;on&quot; or lcase(status)=&quot;off&quot; then oReg.SetBinaryValue HKCU, sKey, sValue, binaryVal &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;end sub&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/8535350220673966688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/to-set-automatically-detect-settings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/8535350220673966688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/8535350220673966688'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/11/to-set-automatically-detect-settings.html' title='To set automatically detect settings On/Off in IE'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-2249148640033897624</id><published>2012-10-31T06:23:00.001-07:00</published><updated>2012-10-31T06:23:09.797-07:00</updated><title type='text'>How to return &quot;working&quot; from &quot;I am working in on office&quot; string</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
str= &quot;I am working in on office&quot;&lt;br /&gt;
strsearch=&quot;working&quot;&lt;br /&gt;
msgbox mid(str,instr(1,str,strsearch),Len(strsearch))&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/2249148640033897624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-return-working-from-i-am-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2249148640033897624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2249148640033897624'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-return-working-from-i-am-working.html' title='How to return &quot;working&quot; from &quot;I am working in on office&quot; string'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-1400907421862424644</id><published>2012-10-25T03:33:00.000-07:00</published><updated>2012-10-25T03:39:35.610-07:00</updated><title type='text'>How to get Subject and body from the Outlook mail</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
set olApp=createObject(&quot;Outlook.Application&quot;)&lt;br /&gt;
set olns=olApp.GetNameSpace(&quot;MAPI&quot;)&lt;br /&gt;
set objFolder=olns.GetDefaultFolder(6)&lt;br /&gt;
for each item1 in objFolder.items&lt;br /&gt;
if item1.unread then&lt;br /&gt;
msgbox item1.subject&lt;br /&gt;
msgbox item1.body&lt;br /&gt;
end if&lt;br /&gt;
next&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/1400907421862424644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-get-subject-and-body-of-outlook.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/1400907421862424644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/1400907421862424644'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-get-subject-and-body-of-outlook.html' title='How to get Subject and body from the Outlook mail'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-7405097424034985836</id><published>2012-10-22T02:16:00.005-07:00</published><updated>2012-10-22T02:19:02.779-07:00</updated><title type='text'>How to Restart computer through VBScript\QTP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
strComputer = &quot;ComputerName&quot;&lt;br /&gt;Set objWMIService = GetObject(&quot;winmgmts:&quot; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; &quot;{impersonationLevel=impersonate,(Shutdown)}!\\&quot; &amp;amp; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strComputer &amp;amp; &quot;\root\cimv2&quot;)&lt;br /&gt;&lt;br /&gt;Set colOperatingSystems = objWMIService.ExecQuery _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&quot;Select * from Win32_OperatingSystem&quot;)&lt;br /&gt;&lt;br /&gt;For Each objOperatingSystem in colOperatingSystems&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objOperatingSystem.Reboot()&lt;br /&gt;Next&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/7405097424034985836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-restart-computer-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/7405097424034985836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/7405097424034985836'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-restart-computer-through.html' title='How to Restart computer through VBScript\QTP'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-2248556937329711829</id><published>2012-10-22T01:54:00.000-07:00</published><updated>2012-10-22T01:54:03.866-07:00</updated><title type='text'>How to Import\Download attachment files from QC Test Plan to local Drive</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
LocalFilePath = &quot;C:\Updated_Files_Form_QC_TillDate&quot;&lt;br /&gt;
Set QCConnection = QCUtil.QCConnection&lt;br /&gt;
Set treeManager = QCConnection.TreeManager&lt;br /&gt;
&#39;Specify the Quality Center path to the desired folder&lt;br /&gt;
QC_Path =&quot;Subject\Automation\Regression\Library&quot;&lt;br /&gt;
Set node = treeManager.nodebypath(QC_Path)&lt;br /&gt;
set stratt = node.attachments&lt;br /&gt;
For Each obj_QCAttachment In stratt.NewList(&quot;&quot;) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj_QCAttachmentStorage = obj_QCAttachment.AttachmentStorage&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;obj_QCAttachmentStorage.ClientPath = LocalFilePath &#39;give the directory where u want to save the file&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj_QCAttachmentStorage.Load obj_QCAttachment.Name,True &lt;br /&gt;
Next&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/2248556937329711829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-importdownload-attachment-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2248556937329711829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2248556937329711829'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-importdownload-attachment-files.html' title='How to Import\Download attachment files from QC Test Plan to local Drive'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-7438545740488266200</id><published>2012-10-03T06:26:00.001-07:00</published><updated>2013-01-10T01:28:34.911-08:00</updated><title type='text'>How to find length of the string without using Len function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
str=&quot;FindLength&quot;&lt;br /&gt;
&#39;Here you need to add one single character which is not existed in your string&lt;br /&gt;
str=FindLengthr&quot;&lt;br /&gt;
&#39;here i had added one character &quot;r&quot; in the last of the string&lt;br /&gt;
msgbox instr(1,str,&quot;r&quot;,1)-1&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;OtherWay:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
str=&quot;VBSCRIPTING&quot;&lt;br /&gt;
i=1&lt;br /&gt;
do &lt;br /&gt;
str1=mid(str,i,1)&lt;br /&gt;
if str1&amp;lt;&amp;gt;&quot;&quot; then&lt;br /&gt;
i=i+1&lt;br /&gt;
else&lt;br /&gt;
exit do&lt;br /&gt;
end if&lt;br /&gt;
loop until str1=&quot;&quot;&lt;br /&gt;
msgbox i-1&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/7438545740488266200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-find-length-of-string-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/7438545740488266200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/7438545740488266200'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-find-length-of-string-without.html' title='How to find length of the string without using Len function'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-3058635010601337352</id><published>2012-10-03T06:13:00.003-07:00</published><updated>2012-10-03T06:18:19.523-07:00</updated><title type='text'>How to verify some text in Excel which is having large number of data</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Set xl=CreateObject(&quot;Excel.Application&quot;) &lt;br /&gt;
xl.Workbooks.Open &quot;C:\Test.xlsx&quot;&lt;br /&gt;
Set r = xl.Range(&quot;A1:N20&quot;).Find(&quot;kamesh&quot;)&lt;br /&gt;
If r Is Nothing Then &lt;br /&gt;
xl.Cells(1,1).Value= &quot;not found&quot; &lt;br /&gt;
Else &lt;br /&gt;
xl.Cells(1,1).Value= &quot;found&quot; &lt;br /&gt;
End If &lt;br /&gt;
xl.quit&lt;br /&gt;
set xl=nothing&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/3058635010601337352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-verify-some-text-in-excel-which.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3058635010601337352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3058635010601337352'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/10/how-to-verify-some-text-in-excel-which.html' title='How to verify some text in Excel which is having large number of data'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-2591780149774176402</id><published>2012-08-10T06:46:00.000-07:00</published><updated>2012-08-10T06:46:06.746-07:00</updated><title type='text'>Getting Newest file from folder</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
spath =&quot;C:\eLink\Log&quot;&lt;br /&gt;
str=GetNewestFile(spath)&lt;br /&gt;
Function GetNewestFile(spath)&lt;br /&gt;
sNewestFile = Null &#39; init value&lt;br /&gt;
Set oFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;
Set oFolder = oFSO.GetFolder(sPath)&lt;br /&gt;
Set oFiles = oFolder.Files&lt;br /&gt;
&#39; enumerate the files in the folder, finding the newest file&lt;br /&gt;
For Each oFile In oFiles&lt;br /&gt;
On Error Resume Next&lt;br /&gt;
If IsNull(sNewestFile) Then&lt;br /&gt;
sNewestFile = oFile.Path&lt;br /&gt;
dPrevDate = oFile.DateLastModified&lt;br /&gt;
Elseif dPrevDate &amp;lt; oFile.DateLastModified Then&lt;br /&gt;
sNewestFile = oFile.Path&lt;br /&gt;
dPrevDate = oFile.DateLastModified&lt;br /&gt;
End If&lt;br /&gt;
On Error Goto 0&lt;br /&gt;
Next&lt;br /&gt;
If IsNull(sNewestFile) Then sNewestFile = &quot;&quot;&lt;br /&gt;
GetNewestFile=sNewestFile&lt;br /&gt;
End Function&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/2591780149774176402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/08/getting-newest-file-from-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2591780149774176402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2591780149774176402'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/08/getting-newest-file-from-folder.html' title='Getting Newest file from folder'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-2836156119383612452</id><published>2012-08-10T06:37:00.003-07:00</published><updated>2012-08-10T06:37:57.527-07:00</updated><title type='text'>Between QTP 9.5 &amp; earlier versions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. Checkpoints and Output values can be seen &amp;amp; edited in the OR while same was not possible in the earlier versions of QTP.&lt;br /&gt;
2. Installation file is a single one bundled with all add-ins, previously we have to download add-ins separately.&lt;br /&gt;
3. Movie recorder was introduced in the results &lt;br /&gt;
4. Web add-in extensibility add- in was introduced &lt;br /&gt;
5. Maintenance run mode was introduced &lt;br /&gt;
6. It also supports the 64 bit windows edition while the earlier were supporting only 32 bit systems only&lt;br /&gt;7. Bitmap tolerance feature was introduced in QTP 9.5&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/2836156119383612452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/08/between-qtp-95-earlier-versions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2836156119383612452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/2836156119383612452'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/08/between-qtp-95-earlier-versions.html' title='Between QTP 9.5 &amp; earlier versions'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-3899115251917692731</id><published>2012-07-02T03:09:00.000-07:00</published><updated>2012-07-02T03:09:10.189-07:00</updated><title type='text'>Write a code to get last Friday date.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&#39;Gets the last friday&#39;s date &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
strCurrentSysDate = Date&lt;br /&gt;
strModDate = dateadd(&quot;ww&quot;,-1,strCurrentSysDate)&lt;br /&gt;
numWeekDay = 6- weekday(strModDate)&lt;br /&gt;
strModifiedDate = dateadd(&quot;d&quot;,numWeekDay,strModDate)&lt;br /&gt;
strmonth =left(monthname(month(strModifiedDate)),3)&lt;br /&gt;
If len(cstr(day(strModifiedDate))) &amp;lt; 2 Then&lt;br /&gt;
strDate = &quot;0&quot;&amp;amp;day(strModifiedDate)&lt;br /&gt;
else&lt;br /&gt;
strDate = day(strModifiedDate)&lt;br /&gt;
End If&lt;br /&gt;
strYear = year(strModifiedDate)&lt;br /&gt;
strPrevDate = strmonth&amp;amp; &quot;/&quot; &amp;amp; strDate &amp;amp; &quot;/&quot; &amp;amp; strYear&lt;br /&gt;
Msgbox strPrevDate&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/3899115251917692731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/07/write-code-to-get-last-friday-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3899115251917692731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/3899115251917692731'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/07/write-code-to-get-last-friday-date.html' title='Write a code to get last Friday date.'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-136368667916109208</id><published>2012-06-29T05:22:00.001-07:00</published><updated>2012-06-29T05:22:15.742-07:00</updated><title type='text'>How to get highest value from given values</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;br /&gt;
Dim num, i, Length1&lt;br /&gt;
num=array(100,34,12,98,43,89,49,56)&lt;br /&gt;
Length1 = UBound(num) &#39;Find the length of array&lt;br /&gt;
For i= 1 to Length1&lt;br /&gt;
&amp;nbsp;&amp;nbsp; If (num(i)&amp;gt;num(0)) Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(0)=num(i)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;
Next&lt;br /&gt;
MsgBox num(0)&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/136368667916109208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/06/how-to-get-highest-value-from-given.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/136368667916109208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/136368667916109208'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/06/how-to-get-highest-value-from-given.html' title='How to get highest value from given values'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1642115484247033477.post-6320443139699269545</id><published>2012-06-04T23:24:00.005-07:00</published><updated>2012-06-21T22:26:01.834-07:00</updated><title type='text'>Loading Actions, Libraries, Repository and Environment files at run time (built-in Functions) without creating QTP object</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;Actions:&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;strong&gt;LoadAndRunAction&lt;/strong&gt;(TestPath, ActionName, [Iteration], [Parameters])&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;&lt;strong&gt;Environment File:&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;Environment.LoadFromFile&lt;/strong&gt;(&quot;C:\QuickTest\Files\MyVariables.xml&quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;Repositories:&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;strong&gt;RepositoriesCollection.Add&lt;/strong&gt;(RepPath)&lt;br /&gt;
&lt;br /&gt;
RepPath = &lt;a href=&quot;file://mercury/SORS/MySharedObjectRepository.tsr&quot;&gt;file://mercury/SORS/MySharedObjectRepository.tsr&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: blue;&quot;&gt;Library Files:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;ExecuteFile&lt;/strong&gt; “FilePath”&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Calibri;&quot;&gt;&lt;strong&gt;&lt;u&gt;New feature in QTP11v:&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt; &lt;strong&gt;LoadFunctionLibrary&lt;/strong&gt; &quot;FilePath&quot;&lt;/div&gt;
&lt;br /&gt;
PilePath=”c:\Add.vbs”&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qtp-vbscript-learners.blogspot.com/feeds/6320443139699269545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/06/loading-actions-libraries-repository.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/6320443139699269545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1642115484247033477/posts/default/6320443139699269545'/><link rel='alternate' type='text/html' href='http://qtp-vbscript-learners.blogspot.com/2012/06/loading-actions-libraries-repository.html' title='Loading Actions, Libraries, Repository and Environment files at run time (built-in Functions) without creating QTP object'/><author><name>kamesh</name><uri>http://www.blogger.com/profile/11666340196808571868</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>