replace usage

Results 1 to 2 of 2

Thread: replace usage

  1. #1
    Join Date
    Dec 1969

    Default replace usage

    this is my code:<BR><BR>imagegif1=dbrs.fields("imagegif")<BR> imagegif2=replace(imagegif1,"C:Inetpubwwwroot\","h ttp://")<BR><BR>and i am getting this error:<BR><BR>Error Type:<BR>Microsoft VBScript runtime (0x800A005E)<BR>Invalid use of Null: &#039replace&#039<BR>/digitized3d/new/models/models1.asp, line 25<BR><BR>i can&#039t figure out what i&#039m doing wrong...anyone?

  2. #2
    Join Date
    Dec 1969

    Default RE: replace usage

    Have you done a <BR>&nbsp; &nbsp; &nbsp; &nbsp; Response.Write imagegif1<BR>*before* the Replace? I would *guess* that you are getting a null value out of your DB for that. So of course Replace barfs.<BR><BR>

Posting Permissions

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