It has been awhile since I coded in C++ but I would redeclare the var in the loop or you could do something like this.
Pseudocode:
Declare X as integer
Declare Y as Boolean
Y=True
Cout "Please Enter a value in Textbox"
If x NOT integer then Y=False
Goto Cout
Do While Y=True
PUT YOUR LOOP HERE
End Do



LinkBack URL
About LinkBacks





Reply With Quote

Bookmarks