devxlogo

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

devx-admin

Share the Post: