Hi Charles,

I don't know if it solves your problem but I use:
on returnInField
  put line 1 of me into me
  answer error "Only one word allowed!" with "OK"
end returnInField

on closeField
  if return is in me then
    returnInField
  end if
  pass closefield
end closefield

on keyDown pKey
 if charToNum(pKey) <> 32 then pass keydown
 answer error "Only one word allowed!" with "OK"
end keyDown

In this I force the user to use just one word!

greetings,

WIlliam de Smet

2006/12/15, Charles Szasz <[EMAIL PROTECTED]>:
Despite the suggestions made to correct this problem, the problem
still exists. I tried the suggestion of changing the field of the
field so that only one line could fit.  i changed the fields to a
field height of 18 and a text height of 14 with and without Don't
Wrap option turn on and off. But that only works on a sporadic basis.
The numbers will disappear to the left and pressing the Return does
nothing to restate the numbers or advance to the next field. You have
to use the Delete to make the two digit number appear but pressing
the Return again makes the number disappear again. This occurred in
one of five edit fields with all having the same dimensions and
options in the Inspector.
This is the script:

on keyDown whichKey
   if whichKey is a number then
     if the selection is not empty then delete the selection
     if the length of me < 2 then
       pass keyDown
     else
       beep
     end if
   end if
end keyDown


I also tried another suggestion that forces a Return to tab but that
disable the script for allowing only two digits numbers in the
script. So, it really lo


Charles Szasz
[EMAIL PROTECTED]



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





--
ICT-coördinator
Herman Broerenschool
2612 SP Delft
015-2141066
http://www.hermanbroerenschool-delft.nl
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to