REPEAT with special key codes

Barry Wiseman barry at gensoftdes.com
Tue May 2 12:56:56 PDT 2006


Here I go again attempting to use the online docs.  Silly me.  Anybody know if this 
can work?

http://fptech.com/Products/Docs/fpmanhtm/references/commands/repeat().htm shows the 
following example:

    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?


-----------------------------------------------------------------
  Barry Wiseman                              barry at gensoftdes.com
  Genesis Software Designs, Inc.            Voice: (212) 889-9191
  18 E. 41 Street, New York, NY 10017         Fax: (212) 889-1589
-----------------------------------------------------------------



More information about the Filepro-list mailing list