Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!emory!hubcap!jcocon From: jcocon@hubcap.clemson.edu (james c oconnor) Newsgroups: comp.sys.mac.hypercard Subject: Scripting Question Message-ID: <13258@hubcap.clemson.edu> Date: 22 Feb 91 21:06:27 GMT Organization: Clemson University, Clemson, SC Lines: 18 I want a button to disappear when a field is empty and appear the instant a user types a character into it. My code looks like this: on keyDown theParm send "keyDown" && theParm to this card if me is empty then hide card button "button" else show card button "button" end if end keyDown It works fine, except when the user types a space. Then the message gets confused. What gets passed is probably "keyDown " and the second space isn't interpreted as the key. Is there a good way around this? I'd like to avoid any hacks. Jim