Validation using Blockly

You will see in our main tutorial on Pascal validation that:
Note: Validation is the checking of data to see if it is sensible in the context being used. Several different types of validation may be applied to the same data item.
You might have heard of the acronym GIGO standing for garbage in garbage out. In our demonstrations of other concepts we usually omit validation to keep the code concise.

We put the demonstration validation code in functions to show the way that it would normally be carried out. The blocks of functions are easy to copy from the XML as they are indented by only two spaces.

Follow the numbered links below for the examples. Our Pascal tutorial demonstrates also a format check and the use of a check digit. You might like to try these using Blockly.

Programming - a skill for life!

XML, images and generated Smart Pascal code of examples including loops, arrays, validation and recursion