How can I show these numbers exactly the same on the form?
(By clicking on a command button and printing them on the form)
Thanks in advance everyone :) (btw, I'm a beginner so please use the easiest way) ;)
( The "*" character means space. I actually need SPACE instead of *
But here I couldn't show it using space so I put * instead.)
1234567
*12345*
**123**
***1***

One way would be to use a for loop from 7 to 1 step -2 and inside of that loop you would need to use the Space Function, to set the number of spaces you will need to pad to the left, and the Left Function to grab x number of characters from a string that you initialize before you go into the loop.

Good Luck

did you try this:

Private Sub Command1_Click()
Print "1234567"
Print " 12345 "
Print "  123  "
Print "    1  "
End Sub

I don't understand what u need to do. vb5prgrmr said nice.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.