FUNCTION ValidatePassword( szUser,szPW ) LOCAL oServer && Server object LOCAL uReturn && Logical by default m.uReturn = .F. && Make it a logical False to make sure m.oServer = CREATEOBJECT( "UserManager.Server" ) && Create a server object && If the logon is successful, we will get && a .NULL. back uReturn = m.oServer.LogonUser( m.szUser,m.szPW ) && Try to log on RETURN ( VARTYPE( uReturn ) != "L" ) && Return value to callerI hope it helps.