Oct-01-2017, 01:57 PM
I am writing a class object that allows a calling routine to specify a text colour. My reasoning is that if the calling rountine passes an invalid parameter it can cause a runtime error. I could trap it with the [try] but I want to be specific. I haven't completed my homework on raising errors.
Most of my code contains very little error checking to prevent runtime errors, so Im updating it. My aim is to get in the habbit of writing code that will cause the least amount of trouble when ported onto different platforms.
Thanks for the heads up though,
MH.
Most of my code contains very little error checking to prevent runtime errors, so Im updating it. My aim is to get in the habbit of writing code that will cause the least amount of trouble when ported onto different platforms.
Thanks for the heads up though,
MH.