English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello ALl,
Can you tell me please How can I know length of array elements. Following are the code which I am doing.

Dim strArray() as string
Dim strString as string

strString="Hi, How are you?"
strArray=split(strString," ") / split string on each blank space & stores in array.



Now I want to know the number of elements into array strArray.

thanks

2007-01-19 06:32:48 · 1 answers · asked by Jack J 1 in Computers & Internet Programming & Design

1 answers

Check out the LBound(), and UBound() functions. Get the Upper Boundary (UBound()), subtract the Lower boundary (LBound()), and add one.

2007-01-19 06:45:46 · answer #1 · answered by Richard H 7 · 3 0

fedest.com, questions and answers