List of all arrays & last array?

sasolini

Registered User.
Local time
Tomorrow, 00:04
Joined
Dec 27, 2004
Messages
61
hey

Can someone pls tell me if it is posible & how to get the list of all arrays and/or last array of one string? What i want is that when i will split a string with slitp function i will be able to get a list of all arrays and/or the last array?

THX
 
I don't understand what you mean by a list of all arrays. I'm going to take a guess that you want to know the last element in an array...

if so, then take the following function as an example

Code:
Public Function CountElementsInArray(ByRef examples() As String) As Long
    CountElementsInArray = UBound(examples()) + 1
End Function
 
hmmm sorry but somehow i dont get it...

but ill explay what i want:

i split var1 to var2:
var2 = split(var1,"/")

now i need the list of all arrays of var2:

arr1 = var2(1)
arr2 = var2(2)
arr3 = ... and so on...

So basicly what i want is to get the number of last array of var2?
 
Look at the function I gave above - it uses the UBound function which gives you the final element in an array. It's the opposite of LBound
 
Oh...i get it...thx...it work just as i need it.
 

Users who are viewing this thread

Back
Top Bottom