
-----------------------------------
turwaa
Tue Apr 17, 2012 5:58 pm

Resetting a program
-----------------------------------
I created this program which lets a user select what type of shape they want to create. I was wondering how I could get it to clear after the user has their shape displayed for them (I don't know where to put the "cls" funtion). Secondly, I was wondering when the person is picking how long/wide/high they want their shape, if they select a word instead of number then the program will tell them to re enter a correct value.
I have attached my program.[/quote]

-----------------------------------
Raknarg
Tue Apr 17, 2012 6:12 pm

RE:Resetting a program
-----------------------------------
For validation, you could use a loop and strintok (s : string)

That will take in a string, and result a boolean if the string entered is also compatible as an integer.

-----------------------------------
turwaa
Tue Apr 17, 2012 7:41 pm

RE:Resetting a program
-----------------------------------
what do you mean? could you post that for me

-----------------------------------
Tony
Tue Apr 17, 2012 8:09 pm

RE:Resetting a program
-----------------------------------
here -- [tdoc]strintok[/tdoc]
