01-13-2024, 06:47 PM
So I was pretty sure Print Using could work with numeric variables but my code came up with a mismatch error. Upon re-reading the wiki it seems I was wrong, that Print Using works with string values. So I changed the code but have hit the same mismatch error. Here is the routine
I have commented out the original code of 'Print Using "##.##"; i / 10; "-"; (i + 1) / 10; " |"; which produced the error and tried to convert it all to string with that dim statement of formatString sting variable. I'm not sure what I'm missing here?
Code: (Select All)
Dim formatString As String
formatString = "##.##"
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