#37247 - 2003-03-04 09:23 AM
Re: Creating UDF
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
It's a kind of bug.
Despite what the manual appears to say, you should always use a value with Exit (and Quit).
The problem is that the parser has been known to exhibit odd behaviour when there is no value - it swallows the next token/keyword which is probably your EndIf.
This means that your If statement is now badly constructed and the parser has a hell of a job working out what is going on.
In short - always supply a value for Exit and Quit - there is no good reason not to.
This feature lead to the infamous "Exit Exit" kludge
|
|
Top
|
|
|
|
#37250 - 2003-03-04 09:44 AM
Re: Creating UDF
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
quote: or quit quit
Ah. I changed the name to protect the innocent. [ 04. March 2003, 09:44: Message edited by: Richard H. ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 302 anonymous users online.
|
|
|