Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locate/Print problem
#1
Not sure if this has been reported:
Code:
row = 1
  for col = 1 to 10
    locate row, col
    print row;
'    print str$(row)
  next col
sleep

The locate sets the correct spot, but the print of an integer without wrapping str$() around it clears the line to the left side of the printed value.
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply
#2
STR$ returns no blanks when number is positive, coz i always hated to do ltrim$( str$( ) ) in QB, now PRINT will add a blank when printing numbers, so the blanks will overwrite the 1's printed before.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)