{"id":2277,"date":"2019-03-25T17:38:51","date_gmt":"2019-03-25T20:38:51","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb15373-function-that-returns-characters-from-a-string\/"},"modified":"2022-11-24T09:51:54","modified_gmt":"2022-11-24T12:51:54","slug":"kb15373-function-that-returns-characters-from-a-string","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb15373-function-that-returns-characters-from-a-string\/","title":{"rendered":"KB-15373: Function that returns characters from a string."},"content":{"rendered":"<div style=\"text-align: justify;\">\n<p><span style=\"font-weight: bold;\">Question:<\/span><\/p>\n<p>How can I split a string into smaller parts?<br \/>\n<br style=\"font-weight: bold;\" \/><span style=\"font-weight: bold;\">Solution:<\/span><\/p>\n<p>To do so, you can use the Global Manager\u2019s <span style=\"font-style: italic;\">Right<\/span>, <span style=\"font-style: italic;\">Left <\/span>and <span style=\"font-style: italic;\">Mid <\/span>functions, found at Elipse SCADA\u2019s Global Manager.<\/p>\n<\/div>\n<div style=\"text-align: justify;\">\n<p><span style=\"font-weight: bold;\">Right (string, nCount)<\/span><br \/>\nReturns the <span style=\"font-style: italic;\">nCount <\/span>characters to the right of the string\u2019s parameter.<br \/>\n<span style=\"font-weight: bold;\">Example of script:<\/span> <span style=\"font-family: Courier New;\">str = Right(\u201cPassword\u201d,4) \/\/ returns \u201cword\u201d<\/span><\/p>\n<p><span style=\"font-weight: bold;\">Left (string, nCount)<\/span><br \/>\nReturns the <span style=\"font-style: italic;\">nCount <\/span>characters to the right of the string\u2019s parameter.<br \/>\n<span style=\"font-weight: bold;\">Example of script:<\/span> <span style=\"font-family: Courier New;\">String = Left(\u2018Password\u2019, 4) \/\/ returns\u2019Pass\u2019<\/span><\/p>\n<p><span style=\"font-weight: bold;\">Mid (strText, nFirst, [nCount])<\/span><br \/>\nReturns part of <span style=\"font-style: italic;\">strText <\/span>according to <span style=\"font-style: italic;\">nFirst <\/span>and <span style=\"font-style: italic;\">nCount<\/span> parameters. <span style=\"font-style: italic;\">nFirst <\/span>especifies the position, in the string, of the first character of the substring that is returns (count starts at zero). <span style=\"font-style: italic;\">nCount <\/span>is the number of characters of the substring.<\/p>\n<p><span style=\"font-weight: bold;\">Examples of script:<\/span> <span style=\"font-family: Courier New;\">strSenha = Mid(\u2018Password\u2019, 0, 3) \/\/ returns\u2019Pas\u2019<\/span><br style=\"font-family: Courier New;\" \/><span style=\"font-family: Courier New;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><span style=\"font-family: Courier New;\">strSenha = Mid(\u2018Password\u2019, 3, 4) \/\/ returns\u2019swor\u2019<\/span><br style=\"font-family: Courier New;\" \/><span style=\"font-family: Courier New;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 strSenha = Mid(\u2018Password\u2019, 2) \/\/ returns\u2019ssword\u2019<\/span><\/p>\n<\/div>\n<p><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I split a string into smaller parts? Solution: To do so, you can use the Global Manager\u2019s Right, Left and Mid functions, found at Elipse SCADA\u2019s Global&hellip;<\/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":[770,771],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-15373: Function that returns characters from a string. - 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\/kb15373-function-that-returns-characters-from-a-string\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-15373: Function that returns characters from a string.\" \/>\n<meta property=\"og:description\" content=\"Question: How can I split a string into smaller parts? Solution: To do so, you can use the Global Manager\u2019s Right, Left and Mid functions, found at Elipse SCADA\u2019s Global&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/\" \/>\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:38:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-24T12:51:54+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"KB-15373: Function that returns characters from a string.\",\"datePublished\":\"2019-03-25T20:38:51+00:00\",\"dateModified\":\"2022-11-24T12:51:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/\"},\"wordCount\":151,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Elipse Scada\",\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/\",\"url\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/\",\"name\":\"[:pt]KB-15373: Function that returns characters from a string.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:38:51+00:00\",\"dateModified\":\"2022-11-24T12:51:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-15373: Function that returns characters from a string.\"}]},{\"@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":"KB-15373: Function that returns characters from a string. - 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\/kb15373-function-that-returns-characters-from-a-string\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-15373: Function that returns characters from a string.[:] - Elipse Knowledgebase","og_description":"Question: How can I split a string into smaller parts? Solution: To do so, you can use the Global Manager\u2019s Right, Left and Mid functions, found at Elipse SCADA\u2019s Global&hellip;","og_url":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:38:51+00:00","article_modified_time":"2022-11-24T12:51:54+00:00","author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"KB-15373: Function that returns characters from a string.","datePublished":"2019-03-25T20:38:51+00:00","dateModified":"2022-11-24T12:51:54+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/"},"wordCount":151,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Elipse Scada","Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/","url":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/","name":"[:pt]KB-15373: Function that returns characters from a string.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:38:51+00:00","dateModified":"2022-11-24T12:51:54+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/kb15373-function-that-returns-characters-from-a-string\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-15373: Function that returns characters from a string."}]},{"@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\/2277"}],"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=2277"}],"version-history":[{"count":3,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2277\/revisions"}],"predecessor-version":[{"id":13963,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2277\/revisions\/13963"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}