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

</BODY>
</HTML>