Import ASCII file
Kenneth Brody
kenbrody at spamcop.net
Fri Apr 15 14:34:36 PDT 2011
On 4/15/2011 4:53 PM, Richard Kreiss wrote:
[...]
>> ITYM:
>>
>> pushkey repeat("[CDWN]","6"*(ro-"1"))
[...]
> 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.
To move the cursor to the 4th line, you need 3 down-arrows:
[CDWN][CDWN][CDWN]
Since each "[CDWN]" is 6 characters, that makes a total of 18. Hence, the
"18" as the second parameter to repeat().
--
Kenneth Brody
More information about the Filepro-list
mailing list