devxlogo

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";

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Engineering Leaders Spot Weak Proposals

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.