@REPEAT[x,20003] works on my computer.
@REPEAT[x,20004] fails on my computer.
The documentation, while true, is inaccurate.
Edit: TCC LE 13.06.77 works up to 32766.
@REPEAT[x,20004] fails on my computer.
Code:
C:\temp> echo %@len[%@repeat[x,20003]]
20003
C:\temp> echo %@len[%@repeat[x,20004]]
TCC: (Sys) The parameter is incorrect.
"%@repeat[x,20004]"
Take Command Help v. 16.0 said:@REPEAT[char,count] : Returns the character char repeated count times (count may not exceed 32,767).
Edit: TCC LE 13.06.77 works up to 32766.
Code:
C:\temp> echo %@LEN[%@REPEAT[x,32766]]
32766
C:\temp> echo %@LEN[%@REPEAT[x,32767]]
TCC: (Sys) The parameter is incorrect.
"%@REPEAT[x,32767]"
Last edited: