Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
request for printing patterns with for loops tutorial
#17
You are. String$() is engineered to only give one character and if you try an include more it just spits out the first character. There have been a few times I wished we had on keyword that could handle multiple characters.

Oh, and x-mas tree code...
Code: (Select All)
Locate 7
a$ = "*"
For i = 1 To 14
    If i > 10 Then a$ = "*"
    Locate , _Width \ 2 - Len(a$) \ 2 + 1
    Print a$
    a$ = a$ + "**"
Next

Pete
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
RE: request for printing patterns with for loops tutorial - by Pete - 12-27-2024, 01:10 AM



Users browsing this thread: 2 Guest(s)