{"id":1349,"date":"2019-03-25T17:34:42","date_gmt":"2019-03-25T20:34:42","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/"},"modified":"2020-02-20T15:01:25","modified_gmt":"2020-02-20T18:01:25","slug":"nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/","title":{"rendered":"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 &#8211; Controle de Fluxo."},"content":{"rendered":"<p><span style=\"color: #990099; font-weight: bold; font-size: large;\">Comando For&#8230;Next<\/span><\/p>\n<p>Repete um bloco de instru\u00e7\u00f5es um determinado n\u00famero de vezes, do <\u00ednicio> ao < fim >:<\/p>\n<p><span style=\"background-color: #cccccc; font-family: Courier New;\">For < contador > = < in\u00edcio > To < fim ><br \/>\n<\/span><span style=\"background-color: #cccccc; font-family: Courier New;\">< bloco de instru\u00e7\u00f5es >\u00a0 <\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">Next<\/span><\/p>\n<p>Exemplos:<\/p>\n<pre>\r\n<span style=\"background-color: #cccccc; font-family: Courier New;\">'Zera os displays<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">For i=1 to 5<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">Screen.Item(\"Display\"&i).Value = 0<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">next<\/span><\/pre>\n<p><span style=\"font-style: italic; color: #3366ff; font-weight: bold; font-size: large;\">Exerc\u00edcios:<\/span><\/p>\n<p>1. Crie tr\u00eas tags de demonstra\u00e7\u00e3o.<br \/>\n2. Insira na tela um gr\u00e1fico.<br \/>\n3. Ao clicar em um bot\u00e3o (Adicionar), cria uma pena para cada tag.<br \/>\n4. Ao clicar em um bot\u00e3o (Remover), remove todas as penas.<\/p>\n<p><span style=\"font-weight: bold; font-size: large;\"><span style=\"color: #990099;\">Comando For Each \u2026 Next <\/span><\/span><\/p>\n<p>Um la\u00e7o For Each &#8230; Next \u00e9 similar a um la\u00e7o For &#8230; Next. Ao inv\u00e9s de repetir as instru\u00e7\u00f5es de um bloco um n\u00famero espec\u00edfico de vezes, um la\u00e7o For Each &#8230; Next repete um grupo de comandos para cada item numa cole\u00e7\u00e3o. Esse comando \u00e9 bastante \u00fatil quando n\u00e3o sabemos a quantidade de elementos.<\/p>\n<pre><span style=\"background-color: #cccccc; font-family: Courier New;\">For each < objeto > in < Colecao > <\/span>\r\n<span style=\"background-color: #cccccc; font-family: Courier New;\">< bloco de instru\u00e7\u00f5es > \r\nNext<\/span><\/pre>\n<p>Exemplos:<\/p>\n<pre><span style=\"background-color: #cccccc; font-family: Courier New;\">'Exibe o nome de todas as tags<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">For each tag in Application.GetObject(\"Dados\")<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">MsgBox tag.Name<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">next<\/span><\/pre>\n<p><span style=\"font-style: italic; color: #3366ff; font-weight: bold; font-size: large;\">Exerc\u00edcios:<\/span><\/p>\n<p>5. Crie tr\u00eas tags de demonstra\u00e7\u00e3o.<br \/>\n6. Insira na tela um gr\u00e1fico.<br \/>\n7. Ao clicar em um bot\u00e3o (Adicionar), cria uma pena para cada tag.<\/p>\n<p><span style=\"font-weight: bold; font-size: large;\"><span style=\"color: #990099;\">Comando While&#8230;Wend <\/span><\/span><\/p>\n<p>Executa um bloco de instru\u00e7\u00f5es enquanto uma determinada condi\u00e7\u00e3o \u00e9 verdadeira:<\/p>\n<p><span style=\"background-color: #cccccc; font-family: Courier New;\">While < condi\u00e7\u00e3o ><br \/>\n< bloco de instru\u00e7\u00f5es ><br \/>\nWend<\/span><\/p>\n<p>Exemplos:<\/p>\n<p><span style=\"background-color: #cccccc; font-family: Courier New;\">&#8216;Soma 1 enquanto for menor que 10<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">While Tag.Value < 10 <\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">Tag.Value = Tag.Value + 1<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">Wend<\/span><\/p>\n<p><span style=\"font-style: italic; color: #3366ff; font-weight: bold; font-size: large;\">Exerc\u00edcios:<\/span><\/p>\n<p>8. Crie na tela um ret\u00e2ngulo horizontal para ser uma barra de progresso.<br \/>\n9. Fa\u00e7a a propriedade HorizontalPercentFill do ret\u00e2ngulo variar de 0 a 100 dentro de um comando while. Dica: Para atualizar a tela, utilize o comando Refresh do Frame.<\/p>\n<h3>Anexos:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/Licao5.zip\">Licao5.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Repete um bloco de instru\u00e7\u00f5es um determinado n\u00famero de vezes, do <\u00ednicio> ao :For < contador > = < in\u00edcio > To < fim ><bloco de instru\u00e7\u00f5es>\u00a0 Next..<br \/>\nAutor<br \/>\nPaula Pereira En\u00e9as<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[578,610],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 - Controle de Fluxo.[:] - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 - Controle de Fluxo.\" \/>\n<meta property=\"og:description\" content=\"Repete um bloco de instru\u00e7\u00f5es um determinado n\u00famero de vezes, do ao :For &lt; contador &gt; = &lt; in\u00edcio &gt; To &lt; fim &gt;\u00a0 Next.. Autor Paula Pereira En\u00e9as\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:34:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-20T18:01:25+00:00\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 &#8211; Controle de Fluxo.\",\"datePublished\":\"2019-03-25T20:34:42+00:00\",\"dateModified\":\"2020-02-20T18:01:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\"},\"wordCount\":278,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Elipse E3\",\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\",\"url\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\",\"name\":\"[:pt]No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 - Controle de Fluxo.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:34:42+00:00\",\"dateModified\":\"2020-02-20T18:01:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 &#8211; Controle de Fluxo.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 - Controle de Fluxo.[:] - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 - Controle de Fluxo.[:] - Elipse Knowledgebase","og_description":"[:pt]Repete um bloco de instru\u00e7\u00f5es um determinado n\u00famero de vezes, do ao :For < contador > = < in\u00edcio > To < fim >\u00a0 Next.. Autor Paula Pereira En\u00e9as[:]","og_url":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:34:42+00:00","article_modified_time":"2020-02-20T18:01:25+00:00","author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 &#8211; Controle de Fluxo.","datePublished":"2019-03-25T20:34:42+00:00","dateModified":"2020-02-20T18:01:25+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/"},"wordCount":278,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Elipse E3","Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/","url":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/","name":"[:pt]No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 - Controle de Fluxo.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:34:42+00:00","dateModified":"2020-02-20T18:01:25+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/nocoes-de-vbscript-no-software-elipse-e3-licao-5-controle-de-fluxo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"No\u00e7\u00f5es de VBScript no Software Elipse E3: Li\u00e7\u00e3o 5 &#8211; Controle de Fluxo."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1349"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=1349"}],"version-history":[{"count":5,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1349\/revisions"}],"predecessor-version":[{"id":10241,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1349\/revisions\/10241"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=1349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=1349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=1349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}