View Single Post
Old 05-06-2004, 08:54 PM   #1 (permalink)
Dilbert1234567
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
Simple VB script question (real easy)

ok i have a lot of experiance in VB, but none in VBS, i am trying to detect a NULL value from an Array and replace it with a string

the value is stored in VNR(5)

if VNR(5) is a NULL value then it should be replaced with the string nopic.gif

i know that vales are stored in VNR(5), i have tried using other search values other then NULL, like "1.jpg" which is one of the values that VNR(5) can return, when VNR(5) = "1.jpg", it is not changed to "nopic.gif" so i am quite confused about this.

Code:
<%if VNR(5) = NULL then
  VNR(5)= "nopic.gif"
  end if%>
 
<p><img src="Product_Pics\<%= VNR(5) %>" ></p>

any help would be a preciated.
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37