gambas-source-code/app/src/gambas-database-manager/FPassword.class
Benoît Minisini ba19f3c1dd * Copy https://gambas.svn.sourceforge.net/svnroot/gambas/2.0 to https://gambas.svn.sourceforge.net/svnroot/gambas/gambas
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:41:49 +00:00

43 lines
534 B
Text

' Gambas class file
STATIC PRIVATE $sKey AS String
STATIC PUBLIC FUNCTION Run() AS String
SELECT FPassword.ShowModal()
CASE 1
RETURN $sKey
CASE 2
RETURN "CONT"
END SELECT
END
PUBLIC SUB btnOK_Click()
$sKey = Trim(txtPassword.Text)
IF Len($sKey) < 8 THEN
Message(("Please enter at least eight characters."))
RETURN
ENDIF
ME.Close(1)
END
PUBLIC SUB btnCancel_Click()
ME.Close(2)
END
PUBLIC SUB btnQuit_Click()
ME.Close
END
PUBLIC SUB Form_Open()
'txtPassword.SetFocus
END