Need help with Split function in VB 6.0
Dim CMArray(),CMLine As String
'CMLine = "I,CM,S, ,90,1;I,CM,F, ,91,1"
CMArray = Split(CMLine,";")
This gives error Type missmatch.
I want to split CMLine with above containts(which keeps changing in size) to be split using ";".
Please help.
As Markus H said, you must declare CMArray() as string.
The code is as follows
==============
Dim CMLine As String
Dim CMArray() As String
'CMLine = "I,CM,S, ,90,1;I,CM,F, ,91,1"
CMArray = Split(CMLine,";")
thanks Markus!
-brenda (ISV Buddy Team)