Hi anybody
do you know how to limit string that we input in the program ?
LIKE THIS:
Input Name: <-we can input only 5 characters
chamnab 0 Junior Poster in Training
Recommended Answers
Jump to PostYou need to define what exactly you mean by limit. For example what should happen in the sixth character? Should the program just go with the first five character or should the program output an error message if more that 5 character is entered or should the program enable the …
All 4 Replies
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
mrnutty 761 Senior Poster
chamnab 0 Junior Poster in Training
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
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.