cancel
Showing results for 
Search instead for 
Did you mean: 

VBA functions are inaccessible due to its protection level

berathanimre
Level 2
Hi I am trying to get familiar with coding on blueprism. This is my simple code; if (10 >=1) then     input = MID("A random text.",3,3) else     input ="rand" end if output = input   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.
1 REPLY 1

John__Carter
Staff
Staff
Sounds like your code stage doesn't understand what MID is. You probably need to qualify MID or add a namespace import to the Initialise page,