
September 24th, 2001, 09:25 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
problems with the command Spli()
Originally posted by : Simon Lim (haow@dr.com)in asp i can change a variable likexx="1,2,3"intoz(0)=1z(1)=2z(2)=3by usig the commandz = split(x,",")but in asp.net, when i do this, it give me an error instead.System.InvalidCastException: Type mismatchmaybe the variable "z" is not declared correctly perhaps? how to declared the variable z correctly then?i try "Dim z(3) as string" but to no avail.Thank you.
|