Set variable to nothing

Results 1 to 2 of 2

Thread: Set variable to nothing

  1. #1
    Join Date
    Dec 1969

    Default Set variable to nothing

    I have this drop down and if the value of the dropdown is 0 I want my asp to set my var (var1) to nothing I tried<BR>var1= "" but that didn’t work. I got the error <BR><BR>Object required: &#039;[string: ""]&#039; <BR><BR>I also tried var1= null didn&#039;t work either<BR><BR>Any help greatly appreciated.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Set variable to nothing

    Well,<BR><BR>you can do that, but I would need to see more code than what you are showing.<BR><BR>show some more because you could easily do<BR><BR>(on page form is submitted to)<BR><BR>dim var1<BR> var1 = request.form("myselect")<BR> if var1 = "0" then<BR> var1 = ""<BR> end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts