OK. I've got it working. Thanks to Ken Ray for assisting me.
The problem was that the mouseUp message to go to a different card happened
before the closeField (it actually triggered it). I also removed the exit
closeField which now gives the answer box before it actually goes to the new
card. I
Nope. They do more or less the same thing.
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life
information with you, accessible, and secure.
On May 6, 2011, at 8:33 AM, Peter Brigham MD wrote:
> Is there some reason you use "focus on me" as
On May 3, 2011, at 9:14 PM, Bill Vlahos 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
Jim,
I have a test stack that doesn't match what I see in my stack but this test
stack doesn't work right either. Looks like it is going to take a bit to figure
out. I'll send you one if I can figure it out.
Thanks,
Bill Vlahos
On May 5, 2011, at 8:43 PM, Jim Ault wrote:
> Since I don't know
Since I don't know how you are trapping, executing, and locking your
messages, I cannot begin to answer your question.
A sample stack from you would be the best bet, unless you are up for a
cycle of many emails that dance around a possible solution.
Looking forward to your sample stack.
On M
Jim,
How do I test for the "dialog" condition? I don't see anything in the
dictionary for it.
Funny thing is I always get the answer dialog after I go to the new card even
though it should execute it first.
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping y
arch for "is", you get lots more. I find this easy to use,
> despite its breadth.
>
>
> Craig Newman
>
>
>
>
>
> -Original Message-
> From: Bill Vlahos
> To: How to use LiveCode
> Sent: Wed, May 4, 2011 1:58 pm
> Subject: Re: Staying on a
Craig Newman
-Original Message-
From: Bill Vlahos
To: How to use LiveCode
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 keep
The whole area of data validation is pretty interesting, lots of different
ways to indicate errors.
There seem to be at least two different types of validation: the integrity
of each field and cross field relationships.
You can sometimes do the former with keystroke captures (numeric only for
exa
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
Thanks Bill. I had tried searching for "date" before starting on my own
date validation function but didn't find the "is a" reference - I now
realise searching the dictionary only looks for things in the Keyword
column.
Are there any utilities out there to search the dictionary on something
othe
Rather than validate on closeField, I enter an edit mode in the form where all
navigation buttons or commands are disabled, and the only thing the user can do
is save or cancel. The Save button calls a global validate command that cycles
through all the editable fields, checks for the existence
Is all this because you cannot focus on something in the middle of a closeField?
Bob
On May 3, 2011, at 9:40 PM, Terry Judd wrote:
> On 04/05/2011 02:14 PM, "Bill Vlahos" wrote:
>
>> on closeField
>> if me is not a date then
>> answer error "Not a valid date. Retry?" with "No" or "Yes"
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 a
There have been several threads on the list over the last few years
about the inaccuracy of 'is a date' to truly trap errors.
The best source I know is the free stack done by Sarah Riechelt at
http://www.troz.net/rev/index.irev?category=Library#stacks
Also try clicking on the 'ALL' se
Try using closecard or preopencard to test for the 'dialog' condition
and if true, remain on the same card
On May 4, 2011, at 12:17 AM, Bill Vlahos wrote:
Terry,
Thanks this works. I also discovered that I can replace "focus on
me" with "select the text of me" in my script and that works
Terry,
Thanks this works. I also discovered that I can replace "focus on me" with
"select the text of me" in my script and that works too.
If the closeField message comes as a result of going to another card then I get
the dialog but it still goes to the new card anyway so the dialog doesn't
r
Pete,
It is in the dictionary under "is a" and "is not a". Date is one of the many
options.
* date if it is in one of the formats produced by the date or time
functions
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life
information
Folks,
Not strictly related to this but what date format does the syntax "if this
is not a date" use? And where is it documented that "a date" is a valid
expression? Just curious since I've spent several hours writing code to try
to validate a date based on the user's system settings and I've ne
Bill,
I'd try eliminating the exit closeField and the pass closeField from your
handler as a first effort. I don't think either are needed in this case and may
confuse the "focus" issue.
HTH,
Joe Lewis Wilkins
Architect & Director of Product Development for GSI
On May 3, 2011, at 9:14 PM, B
On 04/05/2011 02:14 PM, "Bill Vlahos" wrote:
> 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 closeFi
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 every
22 matches
Mail list logo