on 23/10/2001 21:51, David Janik-Jones at [EMAIL PROTECTED] wrote:
> I need to, on mouseup after clicking a button, check the contents of a small
> text field to make sure it doesn't contain any variation of a specific
> string of characters.
>
> Example, the field can not contain "My Name" or "my name" or "My name" or
> "this is My Name" or "my name rocks" etc.
>
local thePhrase
on mouseEnter
put "my name" into thePhrase
end mouseEnter
on mouseUp
if fld 1 contains thePhrase then
answer "Field is not allowed to contain '" & thePhrase & "'." with "OK"
else
go next card
end if
end mouseUp
This will work, it does not matter if thePhrase is upper or lowercase or in
the middle of a scentence.
John Dixon