cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
UserID16644
Level V

Pass combo box value to another script

Hi all,

I am currently working on 2 scripts. The 2nd script is being included on the 1st one.

I have a combo box on my 1st script that needs the value to be passed into the 2nd script so I can remove unwanted columns from the 2nd script. But the variable used for my combo box doesn't pass the value to the 2nd script. Pls help

1st Script 

H List Box (cb = Combo Box( {"", "Apple", "Orange"}, frt = cb << GetSelected();  )),						

2nd Script

colname = { "Apple", "Banana", "Strawberry", "Mango", Orange"
		};


if (frt== "Apple", 
	Remove From( colname, Contains( colname, "Apple" ) ),	
	Remove From( colname, Contains( colname, "Orange" ) )	
);
1 REPLY 1

Re: Pass combo box value to another script

you should not have a problem if you use a global variable with the same name in both scripts.

 

Are you currently using specific namespaces for the variable, such as Here? That practice will prevent the second script from accessing the variable defined in the first script.