Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23
  1. #21  
    Quote Originally Posted by DrewPre View Post
    The length funtion reports both are 39 characters long, but that would generate a false with one variable having double digit numbers. That's not the case tho.
    Not the way it's written it wouildn't, because found never gets set back to false.

    Code:
    for (f=0;f<arrFileSysFilenames.length;f++)
    {
        found = false;
        for (d=0;d<arrDatabaseFilenames.length;d++)
        {
            if (arrDataBaseFilename[d] == arrFileSysFilename[f])
            {
                found=true;
             this.alertMessage("Filename Compares?", arrDataBaseFilename[d] +" = "+arrFileSysFilename[f]+"  -"+found)       }
    
        }
    }

    or

    Code:
    for (f=0;f<arrFileSysFilenames.length;f++)
    {
        found = false;
        for (d=0;d<arrDatabaseFilenames.length;d++)
        {
            if (arrDataBaseFilename[d] == arrFileSysFilename[f])
            {
                found=true;
            }
            else 
                found = false;
            this.alertMessage("Filename Compares?", arrDataBaseFilename[d] +" = "+arrFileSysFilename[f]+"  -"+found)     
        }
    }
    WOG Dev - WebOS Group http://www.WebOSGroup.com
    PMP Dev - http://www.PimpMyPre.com
    Apps: WOG O.S.K., WOG Card Keeper, WOG Glowstick, WOG Kid Protect, PreLoad, PimpMySounds
  2. #22  
    Quote Originally Posted by DrewPre View Post
    Thank you... That does it... I also added an else {found = false} statement...that helped.

    I have been over thinking things, I think.
    NP - I spent half a day on an if statement with a semicolon after the () one day.
    You stare at it so much you can't see it.

    Good luck!
    WOG Dev - WebOS Group http://www.WebOSGroup.com
    PMP Dev - http://www.PimpMyPre.com
    Apps: WOG O.S.K., WOG Card Keeper, WOG Glowstick, WOG Kid Protect, PreLoad, PimpMySounds
  3. #23  
    <snip>
Page 2 of 2 FirstFirst 12

Posting Permissions