473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

array issue

Thanks in advance for your help!!!

My issue is checking a array variable in a if statement to see if it empty.

Like
Expand|Select|Wrap|Line Numbers
  1. if pram(2) = "" then
  2. if empty redirect
  3. else
  4. not empty run code
  5. end if
  6.  
This is how my array is created
Expand|Select|Wrap|Line Numbers
  1. strString=Request.ServerVariables("HTTP_X_ORIGINAL _URL")
  2. strArray = split(strString, "/")
  3. Redim pram(uBound(strArray))
  4. For i = 0 to uBound(strArray)
  5. pram(i) = strArray(i)
  6. Next
  7.  
I can get empty array by
Expand|Select|Wrap|Line Numbers
  1. if uBound(strArray) = -1 then
  2.  
But I want to check the second item in the array if it's empty. The first item in the array will exist but the second item may not exist and then I need the to redirect the user accordingly.
Jan 17 '16 #1
0 1812

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: eft0 | last post by:
Hi there, the question: I have this array: var Thumbnails = new Array(); Thumbnails = new Array('1', 'listing_34.jpg', 'Home View'); Thumbnails = new Array('2', 'sexy2.jpg', 'Sexy');...
6
by: eft0 | last post by:
Thanks to all who answer my preview post. Now I'll try to describe what I'm doing and what doesn't work. I'm doing a code to move objects (images) in a specified user order, through arrow up...
6
by: eft0 | last post by:
Hi all, In this URL. http://www.streetball.cl/JS/ChangeOrder.php?id=1 If you view the source code, you'll see the original order (JavaScript Array):
3
by: John Dolan | last post by:
Hi all, I need some help here. I have an ActiveX object that requires me to pass in an array that is 1-based (as opposed to the normal 0-based index). Unfortunately the author of the ActiveX...
4
by: Eric Sabine | last post by:
I've simplified the code to the following. I'm just overlooking something very simple I'm sure. Dim mic() As MenuItem mic = New MenuItem(3) {} mic(0) = New MenuItem("a") mic(0).Index = 1 ...
2
by: zoneal | last post by:
I have an array declared as Public in a standard module and wish to pass data from a combobox located on a form. The Combobox takes it's data source using the Add method as follows:- ...
0
by: mareharbor | last post by:
Hi, I am trying to create an array that starts with a calculation and then assigns that variable to the first element of the array. From there the loop attempts to generate each suceeding element of...
1
by: newbie | last post by:
Hello All, I'm trying to figure out this array problem I have. I don't know if I'm doing this correctly. Anyone want to take a look. --------------------- Current Situation....
2
by: newbie | last post by:
Hello All, I'm trying to figure out this array problem I have. I don't know if I'm doing this correctly. Anyone want to take a look. --------------------- Current Situation....
1
by: Phoenix | last post by:
Hi Friends, Any help would be highly appreciated for the following problem : I have a vb 6 application which makes call to an API in some dll which returns an array of strings and no of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.