CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 a problem in including asp file.

Print topic Send  topic

Author Message
B.
Posted: 11/16/2002, 3:25 AM

I'm using ASP w/ Templates. I tried to include 2 files which are TOP.asp and Left.asp into another ASP files

I found that when a Left.asp file was included into another ASP, there is an error, while the other one (TOP.asp) is ok. The error message is :

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch @ line 44

The line 44 is

ScriptPath = Left(Request("PATH_TRANSLATED"), Len(Request("PATH_TRANSLATED")) - Len(FileName))

How can i get it to work. Any helps would be very appreciated.

B.
B+
Posted: 11/17/2002, 3:42 AM

Could it be that the word LEFT is a reserved word ?
Andrew B
Posted: 11/25/2002, 11:43 AM

Well, left is a function, not a reserved word. 2nd, it appears that it is being used properly.

Is the page that you are trying to included marked as 'includeable'? CCS should ask you if you want to change it when you first try to include the page. You can find this in page properties for the page you are tryin to include.

If the problem still persists, you can post a little more information by doing this :

Go into code view, line 44.
Comment out that line
put this code in there :
Response.Write "Path=" & Request("PATH_TRANSLATED") & "<BR>"
Response.Write "File=" & FileName

See what comes out. I don't know why you would get a type mismatch, but it may be that one of those vars is empty, and so the Len function is returning 'empty' and not the blank string. I would think VB would be able to deal with this, but maybe not.
B.
Posted: 11/27/2002, 10:44 PM

Andrew B, Thank you. I'll try it then.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.