Assume that you have a Boolean variable called Test. Here is how you would set it to True using a Script Task.
1) Create a Script Task.
2) Add 'User::Test' (no quotes) to the ReadWriteVariables property.
3) Modify the definition of Public Sub Main as follows:
Public Sub Main()
Dts.Variables("Test").Value = True
Dts.TaskResult = Dts.Results.Success
(Leave the rest of the Script Task code untouched.)
Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.
Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.