Guide- coma
Show older comments
Hi, can you help me please? I have problem with comma ",". I need this:
If I write number into edittext with coma for example 4,3 or 34,4534 or 2342,44 , then I need to write for example into statictext "error". . . else into statictext "ok".
It is possible?
Accepted Answer
More Answers (1)
Dr. Seis
on 20 Mar 2012
0 votes
Yes. Every time the user types something and then hits enter, or tab, or clicks somewhere else in the GUI, etc. the callback function associated with your edittext will execute and you can place a set there to change the static text to "error" or "ok" depending on whether the string you get from the edittext has a comma in it.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!