Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating a Global Variable Output Rowset using ActiveX Script

Status
Not open for further replies.

GJP55

Technical User
Feb 2, 2003
220
GB
Is there a way to populate a Global Variable Output Rowset using ActiveX Script ?

I am trying to populate a global variable called SourceFiles with file names taken from a specific directory. I have code to find the file names but can not find a way to populate this to the global variable.

Once I have this, I can then step through the rowset and import the files individually.

Thanks
 
set your code to find the file names as a variable (something like "vFilePath") then use the code below:

DTSGlobalVariables("SourceFiles").Value = vFilePth


When you want to reuse the data inserted into the global variable you will assign the global variable to a variable (like shown below) and insert that variable where needed

vPth = DTSGlobalVariables("SourceFiles").Value

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top