Printing Problems

Printing Problems

Here is a tip to help with missing or mispositioned text. Thisfailing code works fine with VB3:

 ClsPrint Spc(10); "Enter Your Name";currentx = 0currenty = currenty + 1Print Spc(10); "Enter Your Name";

The messages will be far to the right in VB4. Check the last semicolonin the first Print line to correct this. To show this, precedeeach Print statement with “debug”:

 Debug.Print Spc(10); "Enter Your Name"CurrentX = 0CurrentY = CurrentY + 1Debug.Print Spc(10); "Enter Your Name";

or change the statement to:

 Print Space$(10); "Enter Your Name";
See also  11 Effective Keyword Research Tools and Techniques

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist