13-12-2006, 01:09 AM
Hmmph you should try testing if inputting anything into login username & password works. If so its most likely your PasswordOK sub.
Here you go:
:: Pando
Here you go:
Code:
Function PasswordOK(ByVal Name As String, ByVal Password As String) As Boolean
Dim FileName As String
Dim RightPassword As String * NAME_LENGTH
Dim nFileNum As Integer
PasswordOK = False
If AccountExist(Name) Then
FileName = App.Path & "\Accounts\" & Trim$(Name) & ".dat"
nFileNum = FreeFile
Open FileName For Binary As #nFileNum
Get #nFileNum, 20, RightPassword
Close #nFileNum
If UCase$(Trim$(Password)) = UCase$(Trim$(RightPassword)) Then
PasswordOK = True
End If
End If
End Function
:: Pando