Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 05-06-2004, 08:54 PM   #1 (permalink)
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  
Old 05-07-2004, 12:45 PM   #2 (permalink)
Banned from being Banned
 
Location: Donkey
Try:

Code:
if IsNull(VNR(5)) then
....
end if
__________________
I love lamp.
Stompy is offline  
Old 05-07-2004, 01:47 PM   #3 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
well that helps, the is null fired just fine but it says that VNR(5) does not suport updating, im sure i can get that on my own, trhanks foir the help Stompy
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
Old 05-07-2004, 01:48 PM   #4 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
Code:
<%pic=VNR(5)%>

<%if IsNull(VNR(5)) then
  pic= "nopic.gif"
  end if%>
 
<p><img src="Product_Pics\<%= pic %>" ></p>
works like a charm

thanks again
__________________
Donate Blood!

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

Tags
easy, question, real, script, simple


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 01:56 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73