Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
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.5k 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

Browse Categories