
|
Errors? |
|
|
|
|
|
|||
|
Easy - but what if the user does something unexpected and enters "bla"?
HAH - Therefor a programer always has to check if everything happened like expected. Unfortunately this makes programing sometimes a pain, because catching all potential errors often takes much more time than programing the real task. So we have to check if something has been entered, before we evoke the message box. Try this in the _EditScript window: |
|||
|
|
|||
|
If now the user presses ESC Ofcourse now we would have to check also if the entered points were valid before we calculate the distance, and then we had to check if the calculated distance is somewhat reasonable to go on scaling the object. But for now we ignore all potential errors and clean VBscript programing stile. We go on having a focus on the niceties of RhinoScript. |
|||