Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in RPA by (5.8k points)
I'm trying to use some Visual Basic string manipulation functions in a Blue Prism code stage. Referencing functions like LEN, LEFT, and RIGHT throws an error:

'Len' is not declared. It may be inaccessible due to its protection level.

Is there a DLL or namespace I can import to my Business Object in order to expose and use these functions?

1 Answer

0 votes
by (29.8k points)

LEN, LEFT, and RIGHT are available through the Microsoft.VisualBasic.dll library.

In the Code Options tab of the properties of the Initialize page of your object, add Microsoft.VisualBasic.dll as an entry in the "External References" section, and add Microsoft.VisualBasic as an entry in the "Namespace Imports" section.

After that, you can begin to use the string manipulation functions available in the Visual Basic

 

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.2k users

Browse Categories

...