View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Cone[_2_] Jim Cone[_2_] is offline
external usenet poster
 
Posts: 1,549
Default 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?