Explicit declaration of variables
Suppose a developer does not explicitly declare variables but just
makes up a variable and gives it a value when he needs it anywhere in the code. He prefixes his variable names with "s" for string, "i" for integer, "s" for single, etc. Is there some way I can examine this code and determine that these variables are actually variant data type and not the data type suggested by the prifix? Is there a way to demonstrate or prove that this is not the best practice? |
Explicit declaration of variables
Also, all undeclared variables are a Variant data type. -- Jim Cone Portland, Oregon USA http://www.mediafire.com/PrimitiveSoftware (Thesaurus for Excel - in the free folder) "Slim Slender" wrote in message ... Suppose a developer does not explicitly declare variables but just makes up a variable and gives it a value when he needs it anywhere in the code. He prefixes his variable names with "s" for string, "i" for integer, "s" for single, etc. Is there some way I can examine this code and determine that these variables are actually variant data type and not the data type suggested by the prifix? Is there a way to demonstrate or prove that this is not the best practice? |
All times are GMT +1. The time now is 05:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com