<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic VBA functions are inaccessible due to its protection level in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/VBA-functions-are-inaccessible-due-to-its-protection-level/m-p/90202#M40463</link>
    <description>Hi I am trying to get familiar with coding on blueprism. This is my simple code;


if (10 &amp;gt;=1) then
&amp;nbsp;&amp;nbsp; &amp;nbsp;input = MID("A random text.",3,3)
else
&amp;nbsp;&amp;nbsp; &amp;nbsp;input ="rand"
end if

output = input

&amp;nbsp;

everything in this code works except, MID function does not. Editor recognizes the MID word and its color change to blue but it gives an error "mid' is not declared. It may be inaccessible due to its protection level." How can I solve this problem? None of the functions left,right,mid, len works.</description>
    <pubDate>Fri, 02 Mar 2018 17:54:00 GMT</pubDate>
    <dc:creator>berathanimre</dc:creator>
    <dc:date>2018-03-02T17:54:00Z</dc:date>
    <item>
      <title>VBA functions are inaccessible due to its protection level</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBA-functions-are-inaccessible-due-to-its-protection-level/m-p/90202#M40463</link>
      <description>Hi I am trying to get familiar with coding on blueprism. This is my simple code;


if (10 &amp;gt;=1) then
&amp;nbsp;&amp;nbsp; &amp;nbsp;input = MID("A random text.",3,3)
else
&amp;nbsp;&amp;nbsp; &amp;nbsp;input ="rand"
end if

output = input

&amp;nbsp;

everything in this code works except, MID function does not. Editor recognizes the MID word and its color change to blue but it gives an error "mid' is not declared. It may be inaccessible due to its protection level." How can I solve this problem? None of the functions left,right,mid, len works.</description>
      <pubDate>Fri, 02 Mar 2018 17:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBA-functions-are-inaccessible-due-to-its-protection-level/m-p/90202#M40463</guid>
      <dc:creator>berathanimre</dc:creator>
      <dc:date>2018-03-02T17:54:00Z</dc:date>
    </item>
    <item>
      <title>Sounds like your code stage…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBA-functions-are-inaccessible-due-to-its-protection-level/m-p/90203#M40464</link>
      <description>Sounds like your code stage doesn't understand what MID is. You probably&amp;nbsp;need to qualify MID or add a namespace&amp;nbsp;import to the Initialise page,</description>
      <pubDate>Fri, 02 Mar 2018 21:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBA-functions-are-inaccessible-due-to-its-protection-level/m-p/90203#M40464</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-03-02T21:22:00Z</dc:date>
    </item>
  </channel>
</rss>

