Author |
Topic  |
|
Shep
New Member

74 Posts |
Posted - 20 April 2001 : 13:23:24
|
Hello - I have installed Snitz on Windows 2000 IIS - have configured it fine got and OK - but can't access my default.asp - I get the following error:
Error Type: Microsoft VBScript compilation (0x800A03EA) Syntax error /forum/inc_functions.asp, line 52, column 313
Please Help! Shep
Edited by - Shep on 20 April 2001 13:24:52 |
|
RaiderUK
Average Member
  
United Kingdom
577 Posts |
Posted - 20 April 2001 : 15:22:31
|
open inc_functions.asp and see what the lines of code in /inc_functions.asp, line 52
|
 |
|
Shep
New Member

74 Posts |
Posted - 20 April 2001 : 16:44:54
|
This is line 52 elseif ((UCase(right(strArray(counter-1),6)) <> "HREF=""") and (UCase(right(strArray(counter-1),5)) <> "[URL]") and (UCase(right(strArray(counter-1),6)) <> "[URL=""") and (UCase(right(strArray(counter-1),7)) <> "file:///") and (UCase(right(strArray(counter-1),7)) <> "http://") and (UCase(right(strArray(counter-1),8)) <> "https://") and (UCase(right(strArray(counter-1),5)) <> "SRC=""") and (UCase(right(strArray(counter-1),5)) <> "SRC=""") and strArray(counter)<> "") then
|
 |
|
RaiderUK
Average Member
  
United Kingdom
577 Posts |
Posted - 20 April 2001 : 19:26:34
|
elseif ((UCase(right(strArray(counter-1),6)) <> "HREF=""") and (UCase(right(strArray(counter-1),5)) <> "[URL]") and (UCase(right(strArray(counter-1),6)) <> "[URL=""") and (UCase(right(strArray(counter-1),7)) <> "file:///") and (UCase(right(strArray(counter-1),7)) <> "http://") and (UCase(right(strArray(counter-1),8)) <> "https://") and (UCase(right(strArray(counter-1),5)) <> "SRC=""") and (UCase(right(strArray(counter-1),5)) <> "SRC=""") and strArray(counter)<> "") then
try changing to: and (strArray(counter)<> "") then
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 21 April 2001 : 01:21:19
|
That line is OK. There's nothing wrong with it.
Shep, did you do any modification to any of the files? Can you post a link to your forums so we can take a look at it?
|
 |
|
RaiderUK
Average Member
  
United Kingdom
577 Posts |
Posted - 21 April 2001 : 16:39:44
|
the line was missing an opening bracket to the last AND statment
Edited by - RaiderUK on 21 April 2001 16:40:37 |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 21 April 2001 : 19:18:04
|
From what I see a bracket shouldn't be there. Let me tell you why, at the begining of the elseif code, there is an open bracket. That open bracket surrounds all the code in the elseif statement. The second open bracket is for the UCase, which closes off right here:elseif ((UCase(right(strArray(counter-1),6)) <> "HREF=""") That goes for all the code that is surrounded by the UCase. But the last bit of code at the end doesn't use UCase. Therefore, the last bracket:and strArray(counter)<> "") then closes off the first one at the begining of the elseif statement. If you included the bracket as you suggested, you would have to put a closing bracket for it like this:and (strArray(counter)<> "")) then If you want to make sure, count all the open brackets against all the closing brackets in that elseif line and you will see what I mean.
|
 |
|
RaiderUK
Average Member
  
United Kingdom
577 Posts |
Posted - 21 April 2001 : 19:57:10
|
sorry Davio, I see what you mean now.
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 22 April 2001 : 22:39:55
|
No worries Raider. We all make mistakes.  Happened to me a couple times and HuwR or Richard or Gor jumps in to correct me. That's when I just started out.
But I learn from my mistakes.  I encourage you to continue helping though, if you make a mistake, you know we'll just point it out for you. 
|
 |
|
Shep
New Member

74 Posts |
|
|
Topic  |
|