Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect KeyPress

Status
Not open for further replies.

Mat

Programmer
Jun 6, 1999
8
CA
If any one can help me on that problem.<br>
<br>
I build a bulk file like (flat file) from the content of a textarea and I need to detect the carriage return because the sql server and the bulk program then I use interpret the carriage return as a bunch of empty characters, and give me a messy file to read. So I need to ignore the carriage return in the textarea and replace by a single space or nothing.<br>
<br>
Many thanks!
 
All <i>&lt;textarea&gt;</i> inputs have an <i>onKeyPress</i> property; to call it just make your tag like this:<br>
<i>&lt;textarea width=xx height=x onKeyPress=&quot;{name of function to check & see if it was an &quot;enter&quot;}();&quot;&gt;</i><br>
<br>
Hope this helps;<br>
Rob <p>-Robherc<br><a href=mailto:robherc@netzero.net>robherc@netzero.net</a><br><a href= > </a><br>*nix installation & program collector/reseller. Contact me if you think you've got one that I don't :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top