Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Here's Print Using Mismatch error
#1
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

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
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?
Reply


Messages In This Thread
Here's Print Using Mismatch error - by Dimster - 01-13-2024, 06:47 PM
RE: Here's Print Using Mismatch error - by bplus - 01-13-2024, 07:40 PM
RE: Here's Print Using Mismatch error - by bplus - 01-13-2024, 07:52 PM
RE: Here's Print Using Mismatch error - by bplus - 01-13-2024, 08:47 PM



Users browsing this thread: 1 Guest(s)