|
-
Jul 23rd, 2004, 10:14 AM
#1
Thread Starter
Lively Member
String Manipulation vb.net also asp.net?
hi guys man this project is killing me off, i did this ages ago but forgot asusual i have a string like this:
Card Title:,Color:,Card Type:,Cost:,Pow/Tgh:,Card Text:,Flavor Text:,Artist:,Rarity:
i wanna extract say "Card Title:" dump it into a list or something so i can do a for every x in list do
end for
and do that to everything between the , on that line, i can make the , anything any ideas, i would also like to do a char count on the "Card Title:" and any other thing i pull out, cheers who ever helps me 
si
-
Jul 23rd, 2004, 10:04 PM
#2
Fanatic Member
i want to help but don't know what to help. hehe. cheers mate. perhaps you could try split(input_string,","). string array receives this function. and you can do for each string in the array.
-
Jul 24th, 2004, 03:11 AM
#3
Thread Starter
Lively Member
drew a massive paper diagram and some dodgy code last night, i think i might wrk, im gonna put it into VS today, seems sound, hope it works lol
-
Jul 25th, 2004, 08:44 PM
#4
VB Code:
Const strSample as String = "Card Title:,Color:,Card Type:,Cost:,Pow/Tgh:,Card Text:,Flavor Text:,Artist:,Rarity"
Dim strFields() as String = Split(strSample, ",")
For I as Integer = 0 to strFields.Length - 1
Msgbox strFields(I)
Next
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
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
|