|
-
Sep 23rd, 2006, 05:09 PM
#1
Thread Starter
G&G Moderator
[RESOLVED] String split
Howdy all,
In VB6 I wrote a function to split a string by a character, which ignored quotes.
For example, the Split functions in VB6 and C# would split the following string:
He said, "Hello, my name is blahblah!", to everyone.
VB6 and C# will split this like so, using a comma as the split character:
1) He said
2) "Hello
3) my name is blahblah!"
4) to everyone.
What my function did was split it like so:
1) He said
2) "Hello, my name is blahblah!"
3) to everyone.
I'm having trouble porting it to C#. Obviously, it returned a string array, but in VB I had the comfort of using ReDim. Can anyone write me a function to split by character but ignore quotes? My brain just doesn't want to work today :/
Cheers for any help,
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
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
|