 |
| VBScript For questions and discussions related to VBScript. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

May 10th, 2010, 12:27 AM
|
|
Registered User
|
|
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
str names
Good day all! I am very new to VBScripting and I was wondering if there was a website or some type of reference where I could find a listing of all of the str names. Ex strHomeDir, strHomeDrive, strLocal, etc.
Thanks in advanced!
sjones
|

June 28th, 2010, 01:52 PM
|
|
Authorized User
|
|
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
str names
Hi there. I would imagine that there would not be an official list because strHomeDir, strHomeDrive, strLocal, etc, are simply variable names, which can be what ever you want or need them to be.
Although every variable in vbscript is considered a "varient", and not a true data type (like a string or integer) until run-time, the "str" in strHomeDir is more of a descriptive reference, to the developer/administrator looking at the code, that the intended/expected type of data in the variable is a string.
In my scripts, I use the Hungarian Notation to describe varients. There is controversy amoung developers on it's actual necessity, but I use it it my scripts, as do many others. Here's a short guide:
http://technet.microsoft.com/en-us/l.../ee198696.aspx
So, whether you want to use strHomeDir, txtHomeDir, dirHome, sHome, it doesn't matter. What matters the most is that (1) you know what they are and should represent as you write your script, and (2) the syntax of the object that varient is storing is correct.
|

June 29th, 2010, 07:33 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
|
|
Aside from the fact you are answering a question asked about 50 days ago, I think you misunderstood what he wanted.
I think he simply wanted a list of all *HIS* variable names. Probably would also be nice to have a cross reference (that is, a list of every line each variable is used in). Too bad he's not using an Atari 8-bit computer. We created a version of BASIC for that machine, back in 1982, that did exactly that. "LVAR" listed all your variables with all the line numbers where they were used.
|

June 29th, 2010, 08:33 PM
|
|
Authorized User
|
|
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
???
I responded to the question because it was not answered. I'll make sure not to do that again.
|
|
 |