Le 13 janv. 04, � 07:50, Dar Scott a �crit :



On Monday, January 12, 2004, at 07:58 PM, Doug Lerner wrote:


(2) How do you make a text field into a "password" field (asterisked out)?




here is a sample :

suppose you have a fld named "pass"

here is the script of the fld :

local thisPassword
on returninfield
  get thisPassword
  if it is <whateveryouwant> then
    ##do your stuff
  else
    answer "Tentative ill�gale !"
   close this stack
  end if
end returninfield

on enterinfield
  returninfield
end enterinfield

on keydown whichKey
   put whichKey after thisPassword
  put "*" after field "pass"
end keyDown

on backspaceKey
  put empty into field "pass"
  put "" into thisPassword
end backspaceKey

on deleteKey
  put empty into field "pass"
  put "" into thisPassword
end deleteKey


Hope this helps.



Greetings.


Yves COPPE
[EMAIL PROTECTED]
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to