using package variable in script task

  • hi,

    I have a small doubt...

    I am having a package varianle varpackage int

    now in my script task i want to initialize the script variable with the value in the package variable like in script tx i have a variable as:

    Dim Counter As Integer

    i want to do counter = varpackage

    Please provide me syantax for this?

    I don't have syntax...How to do this

    thanks in advance..

    [font="Comic Sans MS"]
    ---------------------------------------------------

    Thanks [/font]

  • I hope I understand what you are asking.

    Try this:

    Dim counter As Integer = CInt(Dts.Variables("varpackage").Value)

  • Thank si got it...:)

    [font="Comic Sans MS"]
    ---------------------------------------------------

    Thanks [/font]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply