Repeat
Richard Kreiss
rkreiss at verizon.net
Fri Mar 4 10:51:56 PST 2011
Forgot to mention below, that br=@br="1"
Richard
> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of Richard Kreiss
> Sent: Friday, March 04, 2011 1:43 PM
> To: 'Kenneth Brody'
> Cc: filepro-list at lists.celestial.com
> Subject: RE: Repeat
>
>
> > What keystroke(s) would you expect to be pushed, given the following:
> >
> > aa = "[CDWN]"
> > qq = "aa"
> > pushkey qq
>
> In this case qq would be equal to the literal aa and not [CDWN], so none
> would be passed.
> >
> > No fair cheating by actually trying it. Given your understanding of
> > how filePro works, what keystroke(s) would you expect to be pushed?
> >
> > > I have tested qq="CDWN"
> >
> > You need the brackets, unless you want to push the four keystrokes
> > "C", "D", "W", and "N".
> >
> > > I have not been able to get this to work.
>
> Doesn't work in all cases means that when the browse re-executes, the
> cursor in on the first record.
>
> Now, pushkey may be executing but be passing the wrong information as to
> how many times to move down.
>
>
> > DDW
>
> No cursor movement down
>
> >
> > > I have set zz=repeat("[CDWN]",br)
> >
> > Given the correct value of br, this is one valid way of pushing CDWN
> > keystrokes.
> >
> > > Zz=repeat([CDWM],br); pushkey zz
> >
> > This cannot work, as it's a syntax error.
>
> OK, reread the manual on repeat
>
> The following code does work
>
> 63 ------- - - - - - - - - - - - - - - - -
> ◄ If: br gt "1"
> Then: zz=repeat("[CDWN]","6"*br)
> 64 ------- - - - - - - - - - - - - - - - -
> ◄ If: br gt "1"
> Then: pushkey "\""{zz{"\""
>
> One odd thing, on some selections zz ends with [CDWN put pushkey still
> works.
>
> So, repeat looks at each letter or character rather then consider what is
> between the quotes as a unit.
>
>
> Richard
>
>
>
> No syntax error. However when zz if checked in the debugger, zz=[CDW and
> blank out to the right.
> >
> > > I still can't get this to work.
> >
>
> See DDW above
>
> > DDW
> >
> > > What am I doing wrong?
> >
> > You haven't answered several of my questions.
> >
> > Once you have done so, either (1) you will discover it for yourself,
> > or (2) we will be better able to help.
> >
> > --
> > Kenneth Brody
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list