huh, yeah, that's kinda what I thought, but that's weird. sounds like maybe
the warnings are wrong (ie the compiler didn't re-check the files). Try
cleaning and rebuilding the project. Or try closing and re-opening FB and
see if there's still there. I think you're right in expecting your change to
remove the warnings, so I dunno what's up. On the plus side it doesn't
really matter one way or the other.

Doug

On Wed, Aug 27, 2008 at 1:38 PM, Mark <[EMAIL PROTECTED]> wrote:

>   Sorry, that would have been smart to put that info in there.
>
> I'm getting the warning at the else if and else on the for loops on
> variable i, m, and q.
>
>
> for (i in regArray) {
> //
> for (m in originArray){
> //
> for (q in targetArray){
>
> At first I had these loops with the var declaration in each loop
> like this:
>
> for (var i:String in regArray) {
> //
> for (var m:String in originArray){
> //
> for (var q:String in targetArray){
>
> I'd expect to see that warning while it was like this, but upon
> taking them out of the loops and declaring them up top I still get
> the warnings. And the warnings are exactly as I have it - 3596:
> Duplicate variable definition.
>
> Thanks,
> Mark
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, "Doug
> McCune" <[EMAIL PROTECTED]> wrote:
> >
> > what line is giving you the warning? which variable is the
> compiler saying
> > is the duplicate?
> >
> > On Wed, Aug 27, 2008 at 1:18 PM, Mark <[EMAIL PROTECTED]>
> wrote:
> >
> > > Can someone lend their eyes on this and why I'm getting that
> warning.
> > >
> > > Thanks
> > > Mark
> > >
> > > public function doSLFilter(item:Object):Boolean {
> > > //
> > > var i:String;
> > > var m:String;
> > > var q:String;
> > > //trace("target ALL --> " + item.title + "\r" +
> > > item.targetAll + "\r");
> > > //
> > > var isMatch:Boolean = false;
> > > //
> > > if (portType == "Both" && portKind == "All"){
> > > //trace ("BOTH AND ALL");
> > > for (i in regArray) {
> > > //
> > > for (m in originArray){
> > > //
> > > for (q in targetArray){
> > > //
> > > if (item.serviceLine.indexOf
> > > (regArray[i].toString()) != -1 && impactArray.indexOf
> > > (item.networkImpact.toString()) != -1 && desktopString.indexOf
> > > (item.desktopImpact) != -1 && helpdeskString.indexOf
> > > (item.helpdeskImpact) != -1 && item.origin.toString().toLowerCase
> ()
> > > == originArray[m].toString().toLowerCase()){
> > > //
> > > if
> > > (targetArray.length == CustButton.dtCB.length){
> > > //trace
> > > ("both are equal");
> > > isMatch=true;
> > > } else if
> > > (item.targetAll.toLowerCase().indexOf(targetArray[q].toString
> > > ().toLowerCase()) != -1) {
> > > //trace("not
> > > equal");
> > > isMatch=true
> > > }
> > > //isMatch=true;
> > > }
> > > }
> > > }
> > > }
> > > // END BOTH AND ALL \\
> > > } else if (portType != "Both" && portKind == "All") {
> > > //trace ("NOT BOTH and ALL");
> > > for (i in regArray) {
> > > //
> > > for (m in originArray){
> > > //
> > > for (q in targetArray){
> > > //
> > > if (item.serviceLine.indexOf
> > > (regArray[i].toString()) != -1 && item.portfolioType == portType
> &&
> > > impactArray.indexOf(item.networkImpact.toString()) != -1 &&
> > > desktopString.indexOf(item.desktopImpact) != -1 &&
> > > helpdeskString.indexOf(item.helpdeskImpact) != -1 &&
> > > item.origin.toString().toLowerCase() == originArray[m].toString
> > > ().toLowerCase()){
> > > //
> > > if
> > > (targetArray.length == CustButton.dtCB.length){
> > > //trace
> > > ("both are equal");
> > > isMatch=true;
> > >
> > > } else if
> > > (item.targetAll.toLowerCase().indexOf(targetArray[q].toString
> > > ().toLowerCase()) != -1) {
> > > //trace("not
> > > equal");
> > > isMatch=true
> > > }
> > > //isMatch=true;
> > > }
> > > }
> > > }
> > > }
> > > // END NOT ALL \\
> > > } else {
> > > //trace ("NOT BOTH and ALL");
> > > for (i in regArray) {
> > > //
> > > for (m in originArray){
> > > //
> > > for (q in targetArray){
> > > //
> > > if (item.serviceLine.indexOf
> > > (regArray[i].toString()) != -1 && item.portfolioName == portKind
> &&
> > > impactArray.indexOf(item.networkImpact.toString()) != -1 &&
> > > desktopString.indexOf(item.desktopImpact) != -1 &&
> > > helpdeskString.indexOf(item.helpdeskImpact) != -1 &&
> > > item.origin.toString().toLowerCase() == originArray[m].toString
> > > ().toLowerCase()){
> > > // &&
> > > item.targetAll.toLowerCase().indexOf(targetArray[q].toString
> > > ().toLowerCase()) != -1
> > > if
> > > (targetArray.length == CustButton.dtCB.length){
> > > //trace
> > > ("both are equal");
> > > isMatch=true;
> > > } else if
> > > (item.targetAll.toLowerCase().indexOf(targetArray[q].toString
> > > ().toLowerCase()) != -1) {
> > > //trace("not
> > > equal");
> > > isMatch=true
> > > }
> > > //isMatch=true;
> > > }
> > > }
> > > }
> > > }
> > > }
> > > //
> > > return isMatch;
> > > }
> > >
> > >
> > >
> >
>
>  
>

Reply via email to