Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP - removeKey()

Posted on 1998-08-13
6
155 Views
Last Modified: 2013-12-25
What is the syntax of the removeKey() method ?

I want to delete several variables contained in the URL and I tried like below, but it doesn't work !!!

removeKey(Request.ServerVariables("QUERY_STRING"), "COM_LIGNE", "COM_QUANT").
0
Comment
Question by:netf_ds
  • 3
  • 3
6 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1858988
ServerVariables are read-only

Maybe this will work:

MyVar = Request.ServerVariables("QUERY_STRING")

removeKey(MyVar, "COM_LIGNE", "COM_QUANT")

But I could not find the removeKey function, so I am not sure
0
 

Author Comment

by:netf_ds
ID: 1858989
Sorry, but it doesn't change anything !

Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'removeKey'

0
 
LVL 28

Expert Comment

by:sybe
ID: 1858990
I think you must have removeKey() defined somewhere in your code. Maybe in some include, or in the global.asa

Look there for how the sub or function is defined.

Your error message suggests that you should not pass 3 parameters to the function. Try passing 2 or 4 parameters.


this is what I get when I use your code:

=======================
Microsoft VBScript compilation error '800a0414'

Cannot use parens when calling a Sub

/asp/test/removekey.asp, line 5

removeKey(Request.ServerVariables("QUERY_STRING"), "COM_LIGNE", "COM_QUANT")
===============================


0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

Author Comment

by:netf_ds
ID: 1858991
Oooops,

You're right sybe : removeKey was a function I didn't saw in my application and not a predifined function (that's why we both didn't find any reference !). In fact it's not really my application, someone else began it and I was asked to finish it.

OK, if you want to earn the 50 points, I think you have to return me a blank answer.
0
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1858992
ok
0
 

Author Comment

by:netf_ds
ID: 1858993
I finaly wrote :

removeKey(removeKey(Request.ServerVariables("QUERY_STRING"), "COM_QUANT"), "COM_LIGNE")
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question