Import ASCII file
Richard Kreiss
rkreiss at gccconsulting.net
Fri Apr 15 13:53:26 PDT 2011
> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net]
> Sent: Friday, April 15, 2011 2:59 PM
> To: rkreiss at gccconsulting.net
> Cc: filepro-list at lists.celestial.com
> Subject: Re: Import ASCII file
>
> On 4/15/2011 2:01 PM, Richard Kreiss wrote:
> [... Returning to the previous location of a closed browse lookup ...]
> > Set Ro=@br Row in the Browse that is/was highlighted before closing the
> > browse
> >
> > Before opening the browse:
> > Loop_br If: ct lt @br
> > Then: pushkey "[CDWN]";ct=ct+"1";GOTO loop_br
> >
> > Now execute the browse
> [...]
>
> ITYM:
>
> pushkey repeat("[CDWN]","6"*(ro-"1"))
>
> Of course, if you have scrolled the window off of the original set of
records,
> this won't do what you want.
>
> If the browse isn't based on an index with duplicate keys, you might want
to
> consider just re-executing the lookup, using the key from the selected
> record.
Ken,
I don't normally think of repeat and have rarely used it except for drawing
a long line.
Repeat(str,n) str = what to repeat and n is the number of times.
As I read what you have written, to place the cursor on the 4th line of the
browse this would indicate n=18 (6*(4-1))
Can you explain the logic please.
Richard
More information about the Filepro-list
mailing list