Alert() not showing

  1. 5 years ago

    TheMexican

    7 Jul 2018 User since 2016

    I have the following code in the DidFinish() event of a query:

    var msgLogin Alert("Access Denied", "Invalid Username or Password");
    
    if (qryLogin.rowCount > 0) {
    	App.LoggedUser = Login.txtUsername.text;
    	Main.open();
    	Login.close();
    }
    else {
    	
    	Console.write("Invalid User");
    	msgLogin.show();  //This is not showing
    }

    the msgLogin.show(); doesn't show but the Console.write() is working so I know the else statement is being reached.

    Any ideas?

  2. doobox

    7 Jul 2018 User since 2018

    var msgLogin = Alert("Access Denied", "Invalid Username or Password");

  3. TheMexican

    7 Jul 2018 User since 2016

    Lol, thanks, I somehow missed that!

or Sign Up to reply!