12-05-2014, 03:26 AM
Code:
'Valid user name and password
username = "abc"
password = "def"
Call Login("Valid",username,password)
'InValid user name and password
username = "xyz"
password = "pqr"
Call Login("InValid",username,password)
'Login Function
Function Login(strValidation,UN,PWD)
if strValidation = "Valid" then
'code to validate successful login
elseif strValidation = "InValid" then
'code to validate failure login
end if
End Function