{"id":1191,"date":"2019-03-25T17:34:01","date_gmt":"2019-03-25T20:34:01","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb28855-writing-multiple-values-at-once-in-a-block\/"},"modified":"2025-08-08T14:28:55","modified_gmt":"2025-08-08T17:28:55","slug":"kb28855-writing-multiple-values-at-once-in-a-block","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb28855-writing-multiple-values-at-once-in-a-block\/","title":{"rendered":"KB-28855: Writing multiple values at once in a block."},"content":{"rendered":"<div style=\"text-align: justify;\">\n<div style=\"text-align: left;\">\n<p><span style=\"font-weight: bold;\">Question:<\/span><\/p>\n<p>Can I write all the values in a block at once, instead of writing them individually in each element?<\/p>\n<p><span style=\"font-weight: bold;\">Solution:<\/span><\/p>\n<p>Yes. To do so, disable the IOBlock&#8217;s <span style=\"font-style: italic;\">AllowWrite <\/span>property (False). It establishes that the block will not perform automatic writes.<\/p>\n<p>There are two possibilities for writing in the block:<\/p>\n<p><span style=\"text-decoration: underline;\">1. By using <span style=\"font-style: italic;\">WriteEx <\/span>method:<\/span><\/p>\n<ul>\n<li>Create an Array with the same size (i.e., number of elements) of your IOBlock;<\/li>\n<li>Pass the value to be written in the block element to each of the Array&#8217;s elements;<\/li>\n<li>After loading the Array with these values, use <span style=\"font-style: italic;\">WriteEx <\/span>method to write the values.<\/li>\n<\/ul>\n<p><span style=\"font-weight: bold;\">Example of script:<\/span><\/p>\n<pre><span style=\"font-family: Courier New; color: #000000;\">'Declaring the Array's size<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Dim ArrayValue(4)<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">'Loading the Array's elements <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">ArrayValue(0) = 10<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">ArrayValue(1) = 20<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">ArrayValue(2) = 30<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">ArrayValue(3) = 40<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">ArrayValue(4) = 50<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">'Writing the block <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block\").WriteEx ArrayValue<\/span><\/pre>\n<\/div>\n<p><span style=\"text-decoration: underline;\">2. By using <span style=\"font-style: italic;\">Write <\/span>method:<\/span><\/p>\n<ul>\n<li>Disable the <span style=\"font-style: italic;\">AllowRead <\/span>property (automatic read) of the IOBlock where you want to write;<\/li>\n<li>Load the block elements with the desired values;<\/li>\n<li>After the values have been loaded, use <span style=\"font-style: italic;\">Write <\/span>method to write the values of the elements previously loaded;<\/li>\n<li>After writing them, enable the block&#8217;s <span style=\"font-style: italic;\">AllowRead <\/span>property (True) again.<\/li>\n<\/ul>\n<p><span style=\"font-weight: bold;\">Example of script: <\/span><\/p>\n<div style=\"text-align: left;\">\n<pre><span style=\"font-family: Courier New; color: #000000;\">'Disables read <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block\").AllowRead = False<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">'Loads values into elements <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block.Element1\").Value = 10<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block.Element2\").Value = 20<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block.Element3\").Value = 30<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block.Element4\").Value = 40<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block.Element5\").Value = 50<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">'Writes the block <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Block\").Write()<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">'Enables read <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">Application.GetObject(\"Driver1.Bloco\").AllowRead = True<\/span><\/pre>\n<\/div>\n<p>Attached to this article is a sample application that illustrates the procedures seen above.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/Sample-1-1.zip\">Sample.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Can I write all the values in a block at once, instead of writing them individually in each element? Solution: Yes. To do so, disable the IOBlock&#8217;s AllowWrite property&hellip;<\/p>\n","protected":false},"author":8,"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":[763],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-28855: Writing multiple values at once in a block. - 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\/kb28855-writing-multiple-values-at-once-in-a-block\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-28855: Writing multiple values at once in a block.\" \/>\n<meta property=\"og:description\" content=\"Question: Can I write all the values in a block at once, instead of writing them individually in each element? Solution: Yes. To do so, disable the IOBlock&#8217;s AllowWrite property&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/\" \/>\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:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-08T17:28:55+00:00\" \/>\n<meta name=\"author\" content=\"Renan De Rossi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Renan De Rossi\" \/>\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\/kb28855-writing-multiple-values-at-once-in-a-block\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/\"},\"author\":{\"name\":\"Renan De Rossi\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/05f0d8f49e5ffe573156b4bd742c627f\"},\"headline\":\"KB-28855: Writing multiple values at once in a block.\",\"datePublished\":\"2019-03-25T20:34:01+00:00\",\"dateModified\":\"2025-08-08T17:28:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/\"},\"wordCount\":188,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/\",\"url\":\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/\",\"name\":\"[:pt]KB-28855: Writing multiple values at once in a block.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:34:01+00:00\",\"dateModified\":\"2025-08-08T17:28:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-28855: Writing multiple values at once in a block.\"}]},{\"@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\/05f0d8f49e5ffe573156b4bd742c627f\",\"name\":\"Renan De Rossi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/39b08f7b309bb6a0abb90e1f09048d80?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/39b08f7b309bb6a0abb90e1f09048d80?s=96&d=mm&r=g\",\"caption\":\"Renan De Rossi\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/renan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-28855: Writing multiple values at once in a block. - 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\/kb28855-writing-multiple-values-at-once-in-a-block\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-28855: Writing multiple values at once in a block.[:] - Elipse Knowledgebase","og_description":"Question: Can I write all the values in a block at once, instead of writing them individually in each element? Solution: Yes. To do so, disable the IOBlock&#8217;s AllowWrite property&hellip;","og_url":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:34:01+00:00","article_modified_time":"2025-08-08T17:28:55+00:00","author":"Renan De Rossi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Renan De Rossi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/"},"author":{"name":"Renan De Rossi","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/05f0d8f49e5ffe573156b4bd742c627f"},"headline":"KB-28855: Writing multiple values at once in a block.","datePublished":"2019-03-25T20:34:01+00:00","dateModified":"2025-08-08T17:28:55+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/"},"wordCount":188,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/","url":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/","name":"[:pt]KB-28855: Writing multiple values at once in a block.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:34:01+00:00","dateModified":"2025-08-08T17:28:55+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/kb28855-writing-multiple-values-at-once-in-a-block\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-28855: Writing multiple values at once in a block."}]},{"@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\/05f0d8f49e5ffe573156b4bd742c627f","name":"Renan De Rossi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/39b08f7b309bb6a0abb90e1f09048d80?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/39b08f7b309bb6a0abb90e1f09048d80?s=96&d=mm&r=g","caption":"Renan De Rossi"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/renan\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1191"}],"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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=1191"}],"version-history":[{"count":4,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1191\/revisions"}],"predecessor-version":[{"id":17221,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1191\/revisions\/17221"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=1191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=1191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=1191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}