Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default 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   Report Post  
Posted to microsoft.public.excel.programming
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Variables' Declaration In Loops Faraz A. Qureshi Excel Programming 6 September 11th 09 09:39 AM
Option Explicit Piranha[_18_] Excel Programming 5 July 6th 05 04:18 AM
Declaring variables - Option Explicit Bijl167[_14_] Excel Programming 2 August 3rd 04 01:13 PM
Correct declaration of variables Bob Phillips[_6_] Excel Programming 1 November 30th 03 03:08 PM
Correct declaration of variables marko Excel Programming 1 November 30th 03 09:56 AM


All times are GMT +1. The time now is 08:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"