REPEAT with special key codes
Bruce Easton
bruce at stn.com
Tue May 2 13:08:59 PDT 2006
Barry Wiseman wrote:
>
> Use PUSHKEY to push 10 right-arrow keys
>
> Then: pushkey repeat ("[CRGT]","10")
>
> I tried doing this today, but only a single [CRGT] was performed.
> It seems REPEAT
> doesn't want a special key code in the first arg. The output of
> my test program
>
> ::end:
> @KEYT::zz(50,*)=repeat("[CRGT]","5"); errorbox zz:
>
> is:
>
> [CRGT
>
> Of course, I've coded
>
> loop:i lt Value:zz=zz { "[CRGT]"; i=i + "1"; goto loop:
> ::pushkey zz:
>
> and moved on, but still curious for the future: can REPEAT be
> used this way, or is
> this more info in the online docs that's Just Plain Wrong?
>
>
Your last argument in the repeat command needs to be the total character
length that you expect the result to be - in this case, try "60."
More information about the Filepro-list
mailing list