Re: Problem Input.
Posted in 1999
>I would like to know if it is possible to do the following in a 4GL program: > >.... > Let p_tecla = Fgl_getkey() >.... > Call func( p_key ) >..... > >Function func( p_key ) >Define p_key Integer >Define p_codigo char( 10 ) >Let p_codigo[ 1 ] = Ascii p_key >Input p_codigo without defaults from campo1 > > .............. > -> > >End Input > >The program is waiting for the pressing of a key. Then, it must capture it, and put it in a form. This will result in >a form with that key, and a blinking cursor over it (I got it yet). But, I would like to get that, automatically, the cursor goes one position to the right (as if the user presses the right-arrow). So the user can continue inserting characters without worrying about the pressing of any arrow-key. > >All above is because if the user does not press the right-arrow key, it will erase the first character, and I do not want to get that. I *think* you want Control-A, which toggles between insert and overwrite modes. HTH. Get Your Private, Free Email at http://www.hotmail.com