p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: split function and count of items


Message #1 by dont worry <aspmailbox@y...> on Wed, 5 Dec 2001 07:55:00 -0800 (PST)
Just a guess... I've never used Split

I'd try UBound() as in

NumElements = UBound(str, 1)

- or -

NumElements = UBound(str)



-----Original Message-----
From: dont worry [mailto:aspmailbox@y...] 
Sent: Wednesday, December 05, 2001 10:55 AM
To: Code Clinic
Subject: [proasp_codeclinic] split function and count of items

I use the split function to give me a list of object
submitted via a web form.  What function can I use to
count the number?
example
Str= split(opt1,opt3,opt8, ",")
I KNOW THIS IS 
str(0)=opt1
Str(1)=opt2,etc..
HOW DO I KNOW HOW MANY since the number can change?
thanks
dw

__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com


jmail@d...
$subst('Email.Unsub')

$subst('Email.Unsub').



  Return to Index