How do I prevent the user from entering characters when a float is required? I'm using a bool for valid entry so if they enter text it sends my loop running
henpecked1 0 Posting Whiz in Training
Recommended Answers
Jump to Post>How do I prevent the user from entering characters when a float is required?
There's no standard way to stop a user from entering a character. You'd have to use a non-portable solution or allow anything under the sun and provide robust validation. I always recommend going for the portable …
All 4 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
henpecked1 0 Posting Whiz in Training
Narue 5,707 Bad Cop Team Colleague
henpecked1 0 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.