Link to home
Start Free TrialLog in
Avatar of anp_mca
anp_mca

asked on

Array Element

In array have a big message like ("God is Great") .I want to split the words and stored into the different variables . a=God, b=is and c=Great.
pls give me a solution
ASKER CERTIFIED SOLUTION
Avatar of butch_18445
butch_18445
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of anp_mca
anp_mca

ASKER

Thank you for your quick reply
array have lot of files details
ex:
a(0)=name, size, date, type and permission
a(1)=
.
.
a(n)=


I want to display the values in List View control . I need the details displayed in seperatly. consider this
well, you can use Split() like above to split into an array, then to add to a listview, you would do something like this.  if Ar() is your array, then:
Dim i As Integer, i2 As Integer
 
i = ListView1.ListItems.Count + 1
 
ListView1.ListItems.Add i, , Ar(0)
 
For i2 = 1 To UBound(Ar)
    ListView1.ListItems(i).SubItems(i2) = Ar(i2)
Next

Open in new window

Avatar of anp_mca

ASKER

Ok
Forced accept.

Computer101
EE Admin