Hi its my first time to join on this community, could anyone help me out to figure out?

Actually I want to figure out how this picture would work http://i49.tinypic.com/5bd1tt.png using loop.

Basically its like this on a elaborated details:

Write a program like the one to the right. The user enters a number into the textbox in the upper right-hand corner. When the "Run Loop" button is clicked, the numbers from Start to 100 are written to the textbox. In this figure, the numbers 58 to 100 are written to the textbox. <

http://mrsawyer.com/vb/vb1_packet5.pdf

The difference version is an inputbox will show first.

A command button and Textbox only. I'm getting hard to figure out using Loop.

Recommended Answers

All 4 Replies

The links looks VERY suspect to me James. Give us more information on what and how you want to loop or include a picture as an attachment here.

We will gladly help from there...

it looks very much like homework you should be doing yourself.

Seems this is going to be here for some time. the solution will be...

Dim xStart As Integer, xEnd As Integer, xLoop As Integer

xStart = Text1.Text ''58 in this case...
xEnd = 100

For xLoop = xStart To xEnd
    Text2.Text = Text2.Text & vbCrLf & xLoop
Next xLoop
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.