Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ubound(array) = -1

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
0
0
US
hmmm...

Haven't had this one before. The ubound of an array that I've created using the split function for a string is returning a -1 to me --

Anyone had this problem before?

theString = "check and in"
theArray = split(theString)
response.write(ubound(theArray))

output:
-1

That return value tells me that the method is not supported or some jazz like that?? How would I make it work?

thx
Paul Prewett
 
:-Q

nevermind. sheesh...
 
using split you need to check for the space:
sDataArray = Split(sData," ",-1, 1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top