Skip to content

Commit

Permalink
Merge pull request #534 from Wyr0X/validate-recordusers-not-empty
Browse files Browse the repository at this point in the history
Validar si recordusers está vacío
  • Loading branch information
RecoX authored Mar 17, 2024
2 parents 0f1cc4b + a5b9fd1 commit d64e92b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Codigo/FileIO.bas
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,12 @@ On Error GoTo error_load_stats
Debug.Assert FileExist(strFile)
n = FreeFile()
Open strFile For Input Shared As n
Line Input #n, str
RecordUsuarios = val(str)
If EOF(n) Then
RecordUsuarios = 1
Else
Line Input #n, str
RecordUsuarios = val(str)
End If
Close #n

Exit Sub
Expand Down

0 comments on commit d64e92b

Please sign in to comment.