Login | |
|
 |
RE: Vbscript coding question - 3/5/2008 9:34:16 AM
|
|
 |
|
| |
ebgreen
Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
|
The Function as a coding construct is part of the language. The ability to have a + sign that collapses the function in your view is part of the editor. What editor are you using?
_____________________________
"... 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: Vbscript coding question - 3/5/2008 9:51:04 AM
|
|
 |
|
| |
ebgreen
Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
|
Keep the display of the code and the functional structure of the code seperate. Breaking your code up into functions can be a great thing if it is done well and done in a programtically safe and correct way. Just going through and adding Function/End Function lines indiscriminantly will break your code in a heart beat. That little + sign that primal puts in refers to what primal calls "Code Regions". Primal creates code regions by default for Functions and Subs in VBScript. YOu can highlight a portion of the code and define your own code region as well. Just highlight the part of code that you want to be able to contract/expand then click the "Create Region" button on the toolbar.
_____________________________
"... 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
|
|
| |
|
|
|
|
|