Staying on a field

Pete pete at mollysrevenge.com
Wed May 4 15:30:32 EDT 2011


I was searching for "date", not "is a".  I guess what I'm saying is that the
way the dictionary search works, you kinda have to know the answer before
you search.  In my case, I was trying to find if there was a way to validate
a date so my first instinct was to do a search for "date".

The dictionary is great if you already know the the name of the function,
command, keyword, etc but can't quite remember the syntax for it, whereas if
you just have a general idea of what you're looking for (as was the case for
me, it doesn't really work very well.

In most applications, there is a searchable help index - you key in a word
or phrase and you get a list of all the help entries that include that word
or phrase.  If the dictionary worked that way, I think it would be a much
better resource, especially for new users.

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Wed, May 4, 2011 at 12:05 PM, <dunbarx at aol.com> wrote:

> Checking the dictionary for "is a" returns that operator. Are you sure you
> were in the "All" mode when you searched? Also, the search is ala "chars" so
> that if you search for "is", you get lots more. I find this easy to use,
> despite its breadth.
>
>
> Craig Newman
>
>
>
>
>
> -----Original Message-----
> From: Bill Vlahos <bvlahos at mac.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Wed, May 4, 2011 1:58 pm
> Subject: Re: Staying on a field
>
>
> Chris,
>
> Interesting idea. I hadn't thought of it before.
>
> Bill Vlahos
> _________________
> InfoWallet (http://www.infowallet.com) is about keeping your important
> life
> information with you, accessible, and secure.
>
> On May 4, 2011, at 7:52 AM, Nonsanity wrote:
>
> > Just a comment on user interfaces, have you thought about using the
> common
> > technique of coloring a field's background red if it doesn't contain a
> valid
> > string? Move the test function into a handler that triggers on each key
> > press. This way the right/wrong state of the field is visible to the user
> at
> > all times. You can also disable buttons like Submit or Next Card or
> whatnot
> > if the user shouldn't be able to click them with any fields still red.
> >
> > This interface style minimizes clicks and modal dialogs, while giving the
> > user much more information.
> >
> > Just a thought. :)
> >
> > ~ Chris Innanen
> > ~ Nonsanity
> >
> >
> > On Wed, May 4, 2011 at 12:14 AM, Bill Vlahos <bvlahos at mac.com> wrote:
> >
> >> I do a validity check on a field to see if the user entered a valid
> date.
> >> If the user entered a valid date and presses TAB or RETURN the focus
> moves
> >> on to the next field. However, if the user enters an invalid date I want
> to
> >> keep the focus on the field to try again.
> >>
> >> This field script does everything correctly except that it doesn't set
> the
> >> focus back on the field. What am I doing wrong?
> >>
> >> on closeField
> >>  if me is not a date then
> >>     answer error "Not a valid date. Retry?" with "No" or "Yes"
> >>     if it is "Yes" then
> >>        focus on me
> >>        exit closeField
> >>     end if
> >>  end if
> >>  pass closeField
> >> end closeField
> >>
> >> Bill Vlahos
> >> _________________
> >> InfoWallet (http://www.infowallet.com) is about keeping your important
> >> life information with you, accessible, and secure.
> >>
> >>
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>



More information about the use-livecode mailing list