I have a 'While Not' loop in a script which was working fine until I added the following lines within the WHILE loop:
Now, I'd have thought it was a fairly reasonable alternative to the BATCH file equivalent of doing a GOTO to a label with nothing underneath it but it doesn't seem to like the 'Function DoNothing' line as that's where the error points to.
So, is it the case that you can't use a Function within a While loop?
Or is it the case you can't define a function with no arguments (which seems absurd to me)?
Or is there another way to achive what I'm doing here without putting the other (unquoted) lines of code (which are IF THEN ELSE based) within the 'If bAppExists = ' loop by making it test for a true condition? I'm trying to avoid nested IFs...
JJ
Code:
If bAppExists = FALSE then
DoNothing()
End If
' (Some other stuff here to do if bAppExists = TRUE)
...
Function DoNothing()
' No, really, do nothing at all
End Function()
Now, I'd have thought it was a fairly reasonable alternative to the BATCH file equivalent of doing a GOTO to a label with nothing underneath it but it doesn't seem to like the 'Function DoNothing' line as that's where the error points to.
So, is it the case that you can't use a Function within a While loop?
Or is it the case you can't define a function with no arguments (which seems absurd to me)?
Or is there another way to achive what I'm doing here without putting the other (unquoted) lines of code (which are IF THEN ELSE based) within the 'If bAppExists = ' loop by making it test for a true condition? I'm trying to avoid nested IFs...
JJ