Ubound

1. Junior Member
Join Date
Dec 1969
Posts
22

## Ubound

strCommentText = "one,two,three"<BR>strSplit = Split(strCommentText, ",")<BR> <BR> For Counter = 0 To UBound(strSplit)<BR> MsgBox (strSplit(Counter))<BR> Next<BR><BR>still pops up as one, two, three how can i make it pop up as three,two,one<BR><BR>cheers

2. Senior Member
Join Date
Dec 1969
Posts
19,082

## I'm going to say 'duh' now

duh.<BR><BR>For Counter = UBound(strSplit) To 0<BR>MsgBox (strSplit(Counter))<BR>Next<BR><BR><BR>j<BR>http://rtfm.atrax.co.uk/

3. Junior Member
Join Date
Dec 1969
Posts
22

## RE: I'm going to say thanks

Need to learn this stuff

4. Senior Member
Join Date
Dec 1969
Posts
19,082

## RE: I'm going to say thanks

no worries. it was tongue-in-cheek, not hostile ;-)

5. Senior Member
Join Date
Dec 1969
Posts
6,476

## Dont you need a step?

For Counter = UBound(strSplit) To 0 Step - 1<BR><BR>Dont you need to tell it to step/count backwards?<BR>always thought you did.

6. Junior Member
Join Date
Dec 1969
Posts
22

## RE: I'm going to say thanks

Its not working though<BR>For Counter = UBound(strSplit) To 0<BR> MsgBox (strSplit(Counter))<BR>Next<BR><BR>Its not poping up msgbox

7. Junior Member
Join Date
Dec 1969
Posts
22

## RE: Dont you need a step?

step did the trick<BR><BR>thanks guys

8. Senior Member
Join Date
Dec 1969
Posts
19,082

## bloody vbscript

9. Senior Member
Join Date
Dec 1969
Posts
6,476

## Bloody JS

Vbs is easier to read.<BR>;-)<BR>just blabberin

10. Senior Member
Join Date
Dec 1969
Posts
19,082

## RE: Bloody Everything

easier to read but bizarrely illogical. Like the horoscope column.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•