You may have noticed, if you've been running the examples, that the pressed keys are displayed on the screen. Sometimes, this is not appropriate, but, thankfully, we can prevent this from happening. ReadKey takes an optional Boolean specifying whether or not to hide input:
The above lines also show something that I've neglected to mention so far: comments. Comments can be made using the apostrophe/single quotation mark key. While they can follow a line of code, it's good practice putting comments on lines by themselves.
That's it for now. Be sure to join us in the next installment of the series.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |