cursor location with default input

Kenneth Brody kenbrody at bestweb.net
Thu Oct 13 07:40:07 PDT 2005


Quoting George Simon (Thu, 13 Oct 2005 00:16:26 -0400):

> ----- Original Message -----
> From: "tony freehauf" <tony at ynotsoftware.com>
[...]
> > hi experts
> > i have a input statement with a 1 character default value and a 2
> > character input variable
> > how do i get the cursor to sit on the second position
> > thanks
> > old tony
> >
> > sample below:
> >
> >  declare answer(2,*), startVal(1,*)
> >   start="t"
> >   input popup answer "Enter correct Value." DEFAULT startVal
> >
> > comment:
> > the cursor sits on the first character of answer
> > i wish it would sit on the second location
> >
> declare answer(2,*), startVal(1,*)
> start="t"
> pushkey "[crgt]"
> input popup answer "Enter correct Value." DEFAULT startVal

Or, for a solution that works pre-5.0 as well:

declare answer(2,*), startVal(1,*)
startVal="t"
pushkey startVal
input popup answer "Enter correct Value."

Of course, where the default value is as long as the input field, or
where you want the cursor someplace other than the very end, this
won't work.

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list