Exercise - Input Validation using User Methods and the u Member

  1. In ShowProducts, add an error message if the ProductName has less than 3 characters (using the u.Len method). Use Trim where needed.
  2. Save changes to Git.
  3. Build and test.
  4. In Run Time use the Shift F12 key combination to go back to the code.
  5. Add the ProductName to the Watch screen.
  6. Add it again and add .Trim().
  7. Notice the different result.
  8. Add an error message in status bar if the ProductName contains one of the following characters: %, @.
  9. Save changes to Git.
  10. Build and test.
  11. Add a warning in status bar if the ProductName starts with "T" (using the u.Left method).
  12. Save changes to Git.
  13. Build and test.

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com