Actually my pbm is this...<BR><BR><%if ubound(arr)>0 then%><BR> <a href="../stat/qty_info.asp" target="logix">Stationery</a><BR> <%else%><BR> <a href="../stat/admindisplay.asp" target="logix">Stationery</a><BR> <%end if%><BR>arr is the array which has some values.<BR>Now what happens is that even if there r no values in arr yet the control does go to that page (but without any records in the table). I do not want to go to that page at all.<BR>Plz help...<BR>mickey<BR>
to look in the docs as I suggested?<BR><BR>here you go, I'll spoonfeed you.<BR><BR>UBound Function<BR>Returns the largest available subscript for the indicated dimension of an array.<BR><BR>so if there is one element (at index 0) UBound returns 0<BR>an empty array, IIRC, returns -1. I don't use VBScript myself, but I looked this up for you.
because you have the direction you need but I guess I am bored tonight<BR><BR>Atrax is right you need the docs<BR><BR>but what is your definition of empty, what are you looking for<BR><BR>Ubound -1 or a dimensioned array with all empty elements <BR>or there is no array at all<BR><BR>If IsArray(arr) Then<BR> there is an array<BR>else<BR> there is no array<BR>end if<BR><BR>any number of array elements greater that -1 is an array wether the elements contain data or not<BR><BR>Dim arr(10)<BR><BR>that is an array of 11 elements containing no information<BR><BR>