{"id":18608,"date":"2017-02-09T06:56:14","date_gmt":"2017-02-09T06:56:14","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=18608"},"modified":"2021-03-17T09:35:08","modified_gmt":"2021-03-17T09:35:08","slug":"how-to-pass-an-array-in-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-pass-an-array-in-raptor-flowchart\/","title":{"rendered":"How to pass an array in Raptor Flowchart"},"content":{"rendered":"<h3>Overview<\/h3>\n<p>In this tutorial, we will learn the steps involved to pass an array in a Raptor flowchart. Array declaration is automatic in Raptor flowchart. We will create two procedures\/modules to fill the array using user prompts. Then the pass the array to print module.<\/p>\n<h3>Pass an array<\/h3>\n<p>We can pass the array using the name to a procedure. For example, if the array is <strong>arr <\/strong>and the procedure name is <strong>printArray() <\/strong>then we can pass the array using:<\/p>\n<p><strong>printArray(arr)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>The <strong>fillArray<\/strong> procedure fills the array with the user entered numbers into the array. It then calls the <strong>printArray<\/strong> procedure to print the array on to the Master console window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18625\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-Print-module.png\" alt=\"passArray to Print module\" width=\"768\" height=\"873\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-Print-module.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-Print-module-264x300.png 264w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h3>Main Flowchart<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18623\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-procedure1.png\" alt=\"passArray to procedure\" width=\"1288\" height=\"965\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-procedure1.png 1288w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-procedure1-300x225.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-procedure1-1024x767.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/passArray-to-procedure1-768x575.png 768w\" sizes=\"auto, (max-width: 1288px) 100vw, 1288px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Print array procedure<\/h3>\n<p>The print module outputs the array elements to the console window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18628\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/printArrayProcedure.png\" alt=\"printArrayProcedure\" width=\"466\" height=\"873\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/printArrayProcedure.png 466w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/printArrayProcedure-160x300.png 160w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/p>\n<h3>Sample Output<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18629\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Array-contents-output.png\" alt=\"Array contents output\" width=\"1748\" height=\"905\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Array-contents-output.png 1748w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Array-contents-output-300x155.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Array-contents-output-1024x530.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Array-contents-output-768x398.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Array-contents-output-1536x795.png 1536w\" sizes=\"auto, (max-width: 1748px) 100vw, 1748px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Raptor Tutorials on this website can be found at:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/<\/strong><\/a><\/p>\n<p>RAPTOR official website: <a href=\"https:\/\/raptor.martincarlisle.com\/\" rel=\"noopener\"><strong>https:\/\/raptor.martincarlisle.com\/<\/strong><\/a><\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-18608\" data-postid=\"18608\" class=\"themify_builder_content themify_builder_content-18608 themify_builder tf_clear\">\n    <\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>Overview In this tutorial, we will learn the steps involved to pass an array in a Raptor flowchart. Array declaration is automatic in Raptor flowchart. We will create two procedures\/modules to fill the array using user prompts. Then the pass the array to print module. Pass an array We can pass the array using the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[19],"class_list":["post-18608","post","type-post","status-publish","format-standard","hentry","category-flowchart","tag-raptor","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=18608"}],"version-history":[{"count":10,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18608\/revisions"}],"predecessor-version":[{"id":19357,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18608\/revisions\/19357"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=18608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=18608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=18608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}