Login | |
|
 |
RE: Example Script for VBS Class - 10/26/2005 11:43:53 PM
|
|
 |
|
| |
mbouchard
Posts: 1779
Score: 12
Joined: 5/15/2003
From: USA
Status: offline
|
Nope, not enough comments. Must be at least double the length of your script. J/K, this is a great script. Will pin it if you don't mind.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Example Script for VBS Class - 10/27/2005 2:20:16 AM
|
|
 |
|
| |
kirrilian
Posts: 627
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
Don't mind a bit.
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: Example Script for VBS Class - 12/21/2005 5:23:00 AM
|
|
 |
|
| |
ebgreen
Posts: 4408
Score: 29
Joined: 7/12/2005
Status: offline
|
One small quibble with this comment: quote:
'gotcha: if you dont use global variables defined at the beginning 'of the script a function is useless. I actually stress the avoidance of global variables. Avoiding them complies with the Law of Demeter, decreases coupling, increases orthogonality, and increases code reusability.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Example Script for VBS Class - 12/21/2005 5:25:17 AM
|
|
 |
|
| |
ebgreen
Posts: 4408
Score: 29
Joined: 7/12/2005
Status: offline
|
One more: quote:
'the easiest way to increment a dynamic array is To 'maintain a variable and increment it each time you 'increase the size of the Array I find that using UBound to resize arrays is better because that way you don't need to keep track of the array length seperately. If the object (array) has a built in property to do this for me, why should I do it myself?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Example Script for VBS Class - 1/4/2006 3:44:27 AM
|
|
 |
|
| |
kirrilian
Posts: 627
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
yea ive since learned different on both points, i just havent updated this script to reflect this, thanks for the comments
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
|
|