You get a missmatch because you provide more values than you designate in the format string.
BTW you don's see the stars printet here, because the freq() array/function is not defined in this example, hence the J loop will evealuate 1 TO 0 and so never is performed.
Code: (Select All)
DIM formatString AS STRING
formatString = "##.## & ##.## &" 'num;str;num;str
FOR i = 0 TO 9
'Print Using "##.##"; i / 10; "-"; (i + 1) / 10; " |";
PRINT USING formatString; i / 10; "-"; (i + 1) / 10; " |";
FOR j = 1 TO freq(i) / 10
PRINT "*";
NEXT j
PRINT
NEXT i
This works.BTW you don's see the stars printet here, because the freq() array/function is not defined in this example, hence the J loop will evealuate 1 TO 0 and so never is performed.
GuiTools, Blankers & other Projects:
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23