Hoppa till huvudinnehållet

All I want is a value

Kommentarer

5 kommentarer

  • Permanently deleted user

    Hi Roger,

         Inside the workflow designer you need to use VB syntax, not c#. So it should be parenthesis not square brackets.

         Try: dtQuads.Rows(0)("QUAD") 

     

    Cheers,

    Christian.

     

    0
  • Permanently deleted user

    I'll have to remember that.  But now I have a new error:

    "Cannot assign from type 'System.Object' to 'System.String' in Assign activity 'Assign'

    Do I have to use a Cast<T> activity, or can I do it in-place?

    0
  • Permanently deleted user

    Try following that up with a .toString :

    dtQuads.Rows(0)("QUAD").toString()

    0
  • Permanently deleted user

    If there is ever a risk of the value being null, you can also wrap it all up in a String.Format call:

    String.Format("{0}", dtQuads.Rows(0)("QUAD"))

    0
  • Permanently deleted user

    I did end up using the Cast<String> activity and that worked just fine.  Thank you for your assistance this afternoon.

    0

Du måste logga in om du vill lämna en kommentar.