Exercise - Input Validation using User Methods and the u Member
- In ShowProducts, add an error message if the ProductName has less than 3 characters (using the u.Len method). Use Trim where needed.
- Save changes to Git.
- Build and test.
- In Run Time use the Shift F12 key combination to go back to the code.
- Add the ProductName to the Watch screen.
- Add it again and add .Trim().
- Notice the different result.
- Add an error message in status bar if the ProductName contains one of the following characters: %, @.
- Save changes to Git.
- Build and test.
- Add a warning in status bar if the ProductName starts with "T" (using the u.Left method).
- Save changes to Git.
- Build and test.
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com