cursor location with default input

George Simon george at worldest.com
Thu Oct 13 08:40:52 PDT 2005


> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com [mailto:filepro-list-
> bounces at lists.celestial.com] On Behalf Of Kenneth Brody
> Sent: Thursday, October 13, 2005 10:40 AM
> To: George Simon
> Cc: filepro-list at lists.celestial.com; tony freehauf
> Subject: Re: cursor location with default input
> 
> 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
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list

When the default value is as long as the field, you can use pushkey "[prtc]"
instead of "[crgt]".  You can place the cursor just about anywhere in the
input field by using a combination of pushkeys.



More information about the Filepro-list mailing list