Option Strict On disallows late binding

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    Option Strict On disallows late binding

    I guess I have to post this anew.

    I would like to retain Option Strict On in my code but how will I do...

    bindingsource.c urrent("firstna me") = "loverboy"


    Error: (Same as Title)

    I tried...

    Ctype(bindingso urce.current("f irstname"), string) = "loverboy"

    but it doesn't work.

    Help me my friend...
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Question moved ot .NET Forum.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      If "Option Strict On" does not allow late binding, doesn't that MEAN that it doesn't allow late binding. Which is what you're doing right there yes?
      Sounds kind of silly when you say out.

      Can you set those values BEFORE they make it into your bindingsource?

      Comment

      Working...