closeField

Ken Ray kray at sonsothunder.com
Sat Sep 9 13:08:38 EDT 2006


On 9/9/06 11:16 AM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:

> All-
> 
> Is there any case where closeField is a useful message?

Well, I depend on closeField in most of my apps and haven't had any
consequences occuring (like crashing). But then again, this may be an IDE
bug instead of an engine bug (since I use the MetaCard IDE mostly). And I
use it for data validation - for example in a field that can hold only
numbers - it is easier to check the value on closeField and alert the user
than it is to set up a rawKeyDown filtering operation. But some apps require
the filtering, and others don't. For example if I'm creating a simple "throw
away" utility app that needs to have some values entered in one or more
fields, I'll generally use closeField and alert the user if there's a
problem and reselect the text of the problematic field.

I think its just a "level of comfort" thing - I got used to closeField back
in the HyperCard days, and have continued on with it through SuperCard and
MetaCard/Rev... if you're more used to semaphores, then do what works best
for you.

Actually I was kind of taken by surprise by your question - to me it was
kind of like asking "does anyone use the + symbol in math equations
anymore?" 

;-)


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list