<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Constraining user input... </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Sarah,</FONT>
</P>

<P><FONT SIZE=2>Thank you so much for the quick response....  This actually works quite well and is a great example, thank you!....  I do have one more question though, this is more out of curiosity I suppose...  Is there some way to store the "constraint" information as part of the field definition and make this a function which gets called?.. THe reason I ask is because I have to do this with about 150 different fields and it would get rather tedious to be cutting and pasting for each one of them.....</FONT></P>

<P><FONT SIZE=2>Again, thank you very much for your help -- I really *REALLY* appreciate it....</FONT>
</P>

<P><FONT SIZE=2>Greg Saylor</FONT>
<BR><FONT SIZE=2>Senior Systems Integrator</FONT>
</P>

<P><FONT SIZE=2>>I don't know that this is a very elegant solution, but it works so it can</FONT>
<BR><FONT SIZE=2>>get you started. Put this in the script of your text entry field.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>on keyDown theKey</FONT>
<BR><FONT SIZE=2>>  if the number of lines in me >= 3 and \</FONT>
<BR><FONT SIZE=2>>      the number of chars in line 3 of me >= 30 then</FONT>
<BR><FONT SIZE=2>>    beep</FONT>
<BR><FONT SIZE=2>>    exit keyDown</FONT>
<BR><FONT SIZE=2>>  else</FONT>
<BR><FONT SIZE=2>>    put word 2 of the selectedLine of me into theLine</FONT>
<BR><FONT SIZE=2>>    if the number of chars in line theLine of me >= 30 then</FONT>
<BR><FONT SIZE=2>>      beep</FONT>
<BR><FONT SIZE=2>>      exit keyDown</FONT>
<BR><FONT SIZE=2>>    end if</FONT>
<BR><FONT SIZE=2>>  else</FONT>
<BR><FONT SIZE=2>>    pass keyDown</FONT>
<BR><FONT SIZE=2>>  end if</FONT>
<BR><FONT SIZE=2>>end keyDown</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Cheers,</FONT>
<BR><FONT SIZE=2>>Sarah</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>> Hello, </FONT>
<BR><FONT SIZE=2>>> </FONT>
<BR><FONT SIZE=2>>> I am completely new to Revolution, but am very interested in using it for</FONT>
<BR><FONT SIZE=2>>> on-going projects....  My single biggest need though is to be able to</FONT>
<BR><FONT SIZE=2>>> constrain the user input to a set number of characters and lines... For</FONT>
<BR><FONT SIZE=2>>> example, for a textbox entry they should only be able to enter 30 characters</FONT>
<BR><FONT SIZE=2>>> of text per line and only 3 lines.....</FONT>
<BR><FONT SIZE=2>>> </FONT>
<BR><FONT SIZE=2>>> Is this possible with Revolution?.. If you could provide an example I sure</FONT>
<BR><FONT SIZE=2>>> would appreciate it.....</FONT>
<BR><FONT SIZE=2>>> </FONT>
<BR><FONT SIZE=2>>> Thanks! </FONT>
<BR><FONT SIZE=2>>> </FONT>
<BR><FONT SIZE=2>>> Greg Saylor </FONT>
<BR><FONT SIZE=2>>> Senior Systems Integrator</FONT>
</P>

</BODY>
</HTML>