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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use a variable as a parameter of SET PROPERTY

Status
Not open for further replies.

ptitbob

Technical User
Oct 17, 2000
8
FR
I would like to use a variable as a parameter in the following instruction... It just doesn't work! Why and how can I turn it right?

Set Variable: "i" = 20
Set Property ("toto", Alpha) = "i"
 
try (no guarantee, just an idea..I'm not a flash person)
set Property ("toto", Alpha = number(i)
I think what is happening is it thinks i is a string and hence doesn't know what to do with it. Also "i" isn't the same as i. i is a varialbe where "i" is a string, important difference.

 
setProperty ("toto", _alpha, i);

i must be set as expression, not " " string


Fernando Regueiro
ferhelping@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top