Thanks everyone for the great advices about variables, much appreciated :-)
Bernard
_________________________________________________________________
MSN Premium with Virus Guard and Firewall* from McAfee® Security : 2 months
FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
--- Begin Message ---
JScript use function based variable scoping, not block based. the
variable scope is dictated by where you actually declare the variable,
not where you use it.
the following code is safe:
function one()
{
var i; //this is a local variable
for (i=0;i < 10; i++)
{
two(f);
}
}
function two()
{
var i; //this is a local variable
for (i=0;i < 10; i++)
{
var i //this doesn't do anything, and you are using the same
i variable as the outer loop
for (i=0;i < 10; i++)
{
}
}
}
Bernard Lebel wrote:
Ok I found the problem.
The enumerator is named "f". In the function, near the end, f is used for a
for() statement. I thought you could use same letters for such things when
they are not in same function, but obviously you can't. Using a different
name of the enumerator fixed the thing.
Thanks
Bernard
----- Original Message -----
From: "Bernard Lebel" <atyss4si(at)hotmail.com>
To: <XSI(at)Softimage.COM>
Sent: Monday, May 03, 2004 11:03 PM
Subject: Re: [Script] Mysterious error
of course, providing a script will help.
Bernard
I'm sorry, I have sent the wrong one. Stupid me.
Here's the good one.
Oh by the way, if you don't want to mess around, create a test folder on
a
drive, put a folder named S009 inside of it, and another named P023 into
that one. Then put a "decor" folder into that last one and put at least
one
file in it.
Thanks
Bernard
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN Premium
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt
p://hotmail.com/enca&HL=Market_MSNIS_Taglines
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
--- End Message ---