dbTalk Databases Forums  

How to store an array in a VB Script global variable

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to store an array in a VB Script global variable in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karen Middleton
 
Posts: n/a

Default How to store an array in a VB Script global variable - 10-20-2004 , 02:20 AM






In one of my ActiveX VB Scripts I want to store an array of values of
the
following type:


10,AL210,35KG
22,DK218,86KG
34,JK220,98TO

I want to store the entire array in a DTS global variable is it
possible ?

Please provide a simple code segment to write this array into a global
variable and another code segment to read the array and display it.

Thanks
Karen

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to store an array in a VB Script global variable - 10-20-2004 , 02:20 PM






Is this a Rowset?

You can easily store a rowset.

You can also, as memory serves, store an array but there are problems when
sabing the package as it will not recognise the array


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Karen Middleton" <karenmiddleol (AT) yahoo (DOT) com> wrote

Quote:
In one of my ActiveX VB Scripts I want to store an array of values of
the
following type:


10,AL210,35KG
22,DK218,86KG
34,JK220,98TO

I want to store the entire array in a DTS global variable is it
possible ?

Please provide a simple code segment to write this array into a global
variable and another code segment to read the array and display it.

Thanks
Karen



Reply With Quote
  #3  
Old   
Karen Middleton
 
Posts: n/a

Default Re: How to store an array in a VB Script global variable - 10-20-2004 , 11:49 PM



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Is this a Rowset?

You can easily store a rowset.

You can also, as memory serves, store an array but there are problems when
sabing the package as it will not recognise the array


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Karen Middleton" <karenmiddleol (AT) yahoo (DOT) com> wrote in message
news:a5fd468a.0410192320.2aff0e3c (AT) posting (DOT) google.com...
In one of my ActiveX VB Scripts I want to store an array of values of
the
following type:


10,AL210,35KG
22,DK218,86KG
34,JK220,98TO

I want to store the entire array in a DTS global variable is it
possible ?

Please provide a simple code segment to write this array into a global
variable and another code segment to read the array and display it.

Thanks
Karen
Allan

Thanks for the tip.

It is not exactly a rowset I am getting these values in the form of an
array from a 3rd party application I want to now serialise these
values from and store into a SQL table.

Thanks
Karen


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.