Late Binding is not allowed in Strict

sap

#1

HI All,

I am trying to Execute the following from Invoke code activity but I am getting error saying Late Binding is not possible in Strict mode.

Capture

Please Look into it… Also Please let me know how to create a custom connector

Regards


#2

Use the actual types instead of Object


#3

Types as in? I didn’t understand?


#4

Please read
https://support.microsoft.com/en-us/help/311329/option-explicit-and-option-strict-in-visual-basic-net-and-in-visual-ba
https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/early-late-binding/


#5

Hi! I know it’s been a while since this thread was opened, but I’m facing the same issue and I want to know how to solve it. I tried CType, DirectCast and CInt (the type i need is an Integer) but no luck. I always get Strict On doesn’t allow late binding. I’m Argentine, so I get the error message in Spanish but is the same one.


#6

Hello!

There is no way (that I know) to overcome this error. You will have to create a Custom Activity to do the job you want.

Regards,


#7

Try using trycast y as integer

TryCast x.myFunction(1,1), Integer

EDIT: sorry - thinking about it, that wouldnt work because integer is a Value type rather than a reference type. Have you tried using Convert?


#8

Dave, thanks for your reply. I tried I and I got the same result


#9

Lucas, thanks for your reply. I’ve never created a Custom Activity and I was waiting for an excuse to do that.


#10

That’s a great opportunity to learn :slight_smile:

Check it out this link:

It will help you :slight_smile:

Regards,