我創建了一個包含用戶名和密碼的登錄頁面。在密碼字段,我改爲字符「*」,而點擊該按鈕登錄我無法登錄登錄頁面無法正常工作
---下面的代碼是密碼字段 全局變量
put "[email protected]" into var
on keydown var
set the hiddentext of me to the hiddentext of me & var
put "*" after me
end keydown
---主要編碼
global Username, var
on openCard
put "shalu" into sUsername
put "[email protected]" into var
end openCard
on loginCheck
if field "FF1" is sUsername and field "FF2" is var then
answer "Login Successful"
--go to card "accessed"
else
answer "Details Incorrect. Please try again!"
end if
end loginCheck
是任何其他方法
謝謝@Scott羅西我有地方一個按鈕,命名爲登錄的同時單擊該按鈕,顯示「錯誤的詳細信息,請再試一次!」即使我輸入了正確的密碼 – Shalu