|
-
October 3rd, 2001, 09:15 PM
#1
for next loop
I'm new at this so please bare with me. I'm trying to create a program that when a button is clicked an angle will print out such as.
*
**
***
****
*****
and so on. I'm using for/next loops but can't seem to get it to print out right.
It's printing out like ******. Any suggestions?
-
October 3rd, 2001, 09:42 PM
#2
Re: for next loop
Try this
Dim i as Integer
Dim s as string
s = ""
for i = 0 to 5
s = s + "*"
Debug.print s
next i
If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it 
-
October 4th, 2001, 01:16 AM
#3
Re: for next loop
for T=1 to 5
Debug.print Replace(Space(t)," ","*")
next T
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
October 4th, 2001, 04:27 PM
#4
Re: for next loop
My two cents worth
private Sub Command1_Click()
Dim x
for x = 1 to 5
Debug.print string(x, "*")
next x
End Sub
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|