title: Store Keystrokes in X++
body: <p>Does anybody knows how to store keystroke as a string in X++?</p>
  
  <p>And also if I want to covert them to ASCII and vise-versa.</p>
  
  <p>And the below job does not shows the expected behaviour.</p>
  
  <pre><code>public void textChange() 
  { 
         int i, j; 
         int L = 12; 
         int h = 4; 
         int t = 54; 
         str tmpStr; 
     ;  
  
    i =  strLen(strKeep(seField.text(), '\n')); 
    info(seField.text() + ' Lines: ' + int2str(i)); 
    super(); 
    if (i &gt;= H) 
   { 
    error(strFmt("max lines = %1", h));  
   } 
  } 
  
     Actually i am trying to implement something like- 
  </code></pre>
  
  <p>in a textChange method of stringEdit when i enter "A"(or any value) it should display "A line 0"(in info log) then i enter B it should display "AB line 0" (in info). Once i press enter and the enter "Q" display shoud be something like "AB Line 0"(1st line) "Q Line 1"(2nd line) and so on. I face problem with "\n"(Enter) So I need to achieve this through ASCII value. Thanks. </p>