REM  RepeatPrint - print a string several times

FUNCTION RepeatPrint(RepeatString AS STRING, RepeatAction AS INTEGER) AS STRING
 DIM AS INTEGER x
 DIM AS STRING Result = ""
 FOR x = 1 TO RepeatAction
   Result += RepeatString
 NEXT x
 RETURN Result
END FUNCTION