Login | |
|
 |
RE: can thiswork?? profile delete script - 4/19/2006 2:07:32 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
If this is your entire script, then it would throw errors. You have an If-Then block that is not closed by an End If and you have a For loop that is not closed by a Next. Basically block constructs like this need to be told where the block ends. You need to add this to the end of your script: End If Loop
_____________________________
"... 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: can thiswork?? profile delete script - 4/19/2006 4:20:37 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
Let's have a quick reset and post the code you are running right now so we know we are working on the same thing. I'll try to explain the Next Next. Basically a For statement begins a loop. In the big picture this is known as a block construct because it basically says "Execute this block of code this many times". In your case the "this many times" is controlled by the Each strWorkstation In RemotePC. For the interpreter to know what block of code to execute, you have to tell it where the block of code ends. You do this with the next statement. This means that every For statement must have a matching Next statement to tell it where the block of code it is supposed to execute ends. Since you have 2 For statements, you must have 2 Next statements.
_____________________________
"... 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
|
|
| |
|
|
|
|
|