Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple Variables' Declaration In Loops | Excel Programming | |||
Option Explicit | Excel Programming | |||
Declaring variables - Option Explicit | Excel Programming | |||
Correct declaration of variables | Excel Programming | |||
Correct declaration of variables | Excel Programming |