Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2006, 06:03 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft VBScript compilation error '800a03ee'

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/test/projectlist/tree/tree_example.asp, line 130

response.write( tree_StartBranch 0,tFALSE, strPRName ,"" & strPMName )
---------------------------------^

Im getting the above error. Im tring to output the contents of the function tree_StartBranch it's mixed with strings and a number value parameters (this is where it's pointing to). Is there away of making ASP think that it's a string yet still be able to output the contents of the function.

The function works fine without the response.write, but i need it to work with the response.write so i can output it to a table, and i have tried without and it doesnt work to how i need it.

Essesntially, i need asp to think it's a string but it's really not.

Thanks!

 
Old September 7th, 2006, 06:20 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

No, you need to add & between all variables to include them in your write statement (you cant use commas) so you need to set the value of your function to a variable.

"The one language all programmers understand is profanity."
 
Old September 7th, 2006, 06:29 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thanks for your reply.

Is there way of making the commas part of the function string?, i know what you mean by using & between variables but to seperate variables in functions i think it can only be done using commas.

Is it possible you can quickly show me how it may look like, using your suggested way.



 
Old September 7th, 2006, 06:51 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

No you can't use & in function signatures.

Dim somevalue

somevalue = tree_StartBranch 0,tFALSE, strPRName ,""

Response.write(someValue & strPMName)

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript compilation error '800a03f6' jdutwell Classic ASP Basics 3 April 2nd, 2008 01:50 PM
Microsoft VBScript compilation error '800a0408' tarzannn Classic ASP Professional 2 February 3rd, 2006 08:55 AM
Microsoft VBScript compilation error karlzoe Classic ASP Databases 2 December 29th, 2004 10:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.