Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 182391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:55:53+00:00 2026-05-11T14:55:53+00:00

I would like to pass Variables from my package into Script Transformation Editor. How

  • 0

I would like to pass Variables from my package into Script Transformation Editor. How do I add this into my Row.Reference1 below?

Here’s the script that I use:

Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper  Public Class ScriptMain     Inherits UserComponent  Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)          Row.Column1 = Tokenise(Row.Column0, '|', 1)         Row.Column2 = Tokenise(Row.Column0, '|', 2)         Row.Column3 = Tokenise(Row.Column0, '|', 3)         Row.Column4 = Tokenise(Row.Column0, '|', 4)         Row.Column5 = Tokenise(Row.Column0, '|', 5)         Row.Column6 = Tokenise(Row.Column0, '|', 6)         Row.Column7 = Tokenise(Row.Column0, '|', 7)         Row.Column8 = Tokenise(Row.Column0, '|', 8)         Row.Column9 = Tokenise(Row.Column0, '|', 9)         Row.Column10 = Tokenise(Row.Column0, '|', 10)         Row.Column11 = Tokenise(Row.Column0, '|', 11)         Row.Column12 = Tokenise(Row.Column0, '|', 12)         Row.Column13 = Tokenise(Row.Column0, '|', 13)         Row.Column14 = Tokenise(Row.Column0, '|', 14)         Row.Column15 = Tokenise(Row.Column0, '|', 15)         Row.Column16 = Tokenise(Row.Column0, '|', 16)         'Row.Reference1 = ???      End Sub  Private Function Tokenise(ByVal input As String, ByVal delimiter As String, ByVal token As Integer) As String          Dim tokenArray As String()         tokenArray = input.Split(delimiter.ToCharArray) 'Split the string by the delimiter         If tokenArray.Length < token Then 'Protect against a request for a token that doesn't exist             Return ''         Else             Return tokenArray(token - 1)         End If     End Function End Class 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:55:53+00:00Added an answer on May 11, 2026 at 2:55 pm

    On the ‘Script’ page of the Script Transformation Editor, the last section is ‘Custom Properties’. There are two properties: ReadOnlyVariables and ReadWriteVariables. Set those that are appropriate to a comma-separated list of the variables you want the script to reference.

    When you click the ‘Edit Script’ button, you’ll find that the Variables class created in the ComponentWrapper.vb now has properties with the names of the variables. The read-only variables will exist as readonly properties; the ReadWrite variables will exist as properties with both a getter and a setter.

    You then reference them as, for instance, Variables.TaskID.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 107k
  • Answers 107k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Without thinking too hard about the direction you're trying to… May 11, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer you could always do this List<A> testme = new List<B>().OfType<A>().ToList();… May 11, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer You may want to consider using a timer control for… May 11, 2026 at 9:06 pm

Related Questions

So I'm working on my own little MVC framework as a learning exercise. It's
I am currently trying to create a menu system for a game and cannot
I have object A which in turn has a property of type Object B
I am working on an object factory to keep track of a small collection

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.