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?
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 spec.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With