208 Part II Programming Fundamentals
To Do This
Loop until a specific
condition is TrueUse a Do loop with the Until keyword. For example:
Dim GiveIn As String
Do
GiveIn = InputBox("Say 'Uncle'")
Loop Until GiveIn = "Uncle"
Loop for a specific
period of time in your
programUse the Timer control.Insert a code snippet
into your programIn the Code Editor, position the insertion point (I-beam) at the location
where you want to insert the snippet. On the Edit menu, click IntelliSense,
and then click Insert Snippet. Browse to the snippet that you want to use,
and then double-click the snippet name.
Add or reorganize
snippets in the Insert
Snippet list boxClick the Code Snippet Manager command on the Tools menu.