1.

Solve : please help for loop statement?

Answer» GUYS give me a code of for loop statement please..you write the whole code in c++ structure....thxTry this and this and any of the other 398,998 hits on Google.

Good luckin vb6 its (for an endless loop that eventually freezes the program)

Quote
theplaceuwanttogo:
beep
goto theplaceuwanttogo


1) theplaceuwanttogo: symbols the goto 2 lines down where to go back to
2) beep --- simple system beep, but gets annying when repeated
3) goto theplaceuwanttogo --- telling the computer that once it reaches line 3 to simply "goto (PLACE)" then put the place SOMEWHERE elce...

but this is vb6 so its probably different... i just felt LIKE posting Yuck!!! Goto!!! The start of spaghetti coding...LOL Yuck indeed Dusty. The scourge of goto needs to be stopped. for more interesting results try


Code: [Select]Do while True
Dim x as String = InputBox("Enter password")
If x = "Some Text" then Exit Do
Beep
Msgbox("Incorrect Password.")
Loopgrr **shakes fist**

im still a bit new at this


Discussion

No Comment Found