Wrox Programmer Forums
|
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
  #1 (permalink)  
Old May 10th, 2010, 12:27 AM
Registered User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old June 28th, 2010, 01:52 PM
Authorized User
 
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #3 (permalink)  
Old June 29th, 2010, 07:33 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

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.
Reply With Quote
  #4 (permalink)  
Old June 29th, 2010, 08:33 PM
Authorized User
 
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ???

I responded to the question because it was not answered. I'll make sure not to do that again.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help in EXSLT function str:tokenize priby XSLT 2 September 1st, 2009 01:43 AM
how to setup .mdf password to link to config str wirerider ASP.NET 2.0 Professional 9 March 4th, 2007 11:11 PM
Report: First and Last Names scandalous Access 4 February 12th, 2007 02:38 PM
To Many Names bachuss SQL Language 0 January 18th, 2006 12:40 PM
Table names arnabghosh SQL Server 2000 3 November 24th, 2005 10:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.