I am trying to write a console percentage of data loading. I tried using the C # syntax that would be Console.Write("\rPercentage: " + nCurrent + "/" + nTotal;, however in VB I get the actual 'r' character displayed in my string. Is there any special code that I need to insert in order to update my cursor to the beginning of the line so that I can reuse this line?
Console.Write("\rPercentage: " + nCurrent + "/" + nTotal;
thank
Use the vbCr command to generate a carriage return character:
Console.Write("{0}Percentage: {1}/{2}", vbCr, nCurrent, nTotal)