dbTalk Databases Forums  

Re: Changing Child Global Variables Problem

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


Discuss Re: Changing Child Global Variables Problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lee Gillie
 
Posts: n/a

Default Re: Changing Child Global Variables Problem - 08-27-2004 , 04:38 PM






Luis -

Not sure if I understand... Can't you call "Add.." to change the value?

What is your oPackage.ExplicitGlobalVariables set to ?

- Lee

Reply With Quote
  #2  
Old   
Lee Gillie
 
Posts: n/a

Default Re: Changing Child Global Variables Problem - 08-27-2004 , 05:29 PM






Luis -

I set oPkg.ExplicitGlobalVariables to False.

Oh, yes I see now in my own code I had to Remove and then Add if the
value was already present, otherwise just Add. My mistake.

- Lee


Luis Simões wrote:

Quote:
Well i dont really want to add... i just wanted to change the value of an
existing child global variable...

The explicit is OFF

"Lee Gillie" wrote:


Luis -

Not sure if I understand... Can't you call "Add.." to change the value?

What is your oPackage.ExplicitGlobalVariables set to ?

- Lee


Reply With Quote
  #3  
Old   
Lee Gillie
 
Posts: n/a

Default Re: Changing Child Global Variables Problem - 08-30-2004 , 03:14 PM



I had reason to iterate the GV's first. I had put the names into a
hashtable, and used the Contains parameterized property.

I notice in some other code I unconditionally do a Remove, protected by
an error trap, and then an Add.

Luis Simões wrote:
Quote:
But can you change the value of an existing global var or not?

How do you remove and detect if a global var exists in a child package?

"Lee Gillie" wrote:


Luis -

I set oPkg.ExplicitGlobalVariables to False.

Oh, yes I see now in my own code I had to Remove and then Add if the
value was already present, otherwise just Add. My mistake.

- Lee


Luis Simões wrote:


Well i dont really want to add... i just wanted to change the value of an
existing child global variable...

The explicit is OFF

"Lee Gillie" wrote:



Luis -

Not sure if I understand... Can't you call "Add.." to change the value?

What is your oPackage.ExplicitGlobalVariables set to ?

- Lee



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.