asked 51.3k views
3 votes
How many times will the string literal "Hi" appear in the lblMsg control? Dim intCount As Integer Do While intCount > 4 lblMsg.Text = lblMsg.Text & "Hi" & ControlChars.NewLine intCount += 1

1 Answer

5 votes

Answer:

0

Explanation:

In my opinion, the string won't display because, the intCount was not initialized before you started outputting the "Hi" string. So in order fro you to get the string to appear, the control point or value has to be initialized to maybe 0. then you can start looping from there. And if you are looping from the top or using greater than (>), The loop works best buy subtracting the control value else, you can end up with infinity loop.

answered
User Beltouche
by
7.5k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.