|
-
Nov 11th, 2003, 05:02 PM
#1
Thread Starter
Addicted Member
syntax problem, whats the correct way to write it?
Code:
dim a() as String=section.Attributes("type").Value.Split(new char(){','})
whats the problem ?how should we write this?!
-
Nov 11th, 2003, 08:04 PM
#2
Frenzied Member
What do you mean? Are you getting an error?
-
Nov 11th, 2003, 08:06 PM
#3
Frenzied Member
What are you trying to do with that?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Nov 11th, 2003, 09:09 PM
#4
Is section an XMLNode? Also Split returns an array but you didn't specific what element in the array to assign to the string.
Try:
dim a() as String=section.Attributes("type").Value.Split(new char(){','})(0)
-
Nov 12th, 2003, 11:36 AM
#5
Thread Starter
Addicted Member
yeah section is a xmlnode, the only thing was that i had to use " instead of '
Code:
dim a() as String=section.Attributes("type").Value.Split(new char(){","})
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|