Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a reorg for .NET Framework 4
Message
From
24/07/2010 14:11:14
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01473537
Message ID:
01473705
Views:
60
>Something odd here: In your original message as I see it there's a line that says:
>"But, I would like to understand the use of .ToCharArray()." but it doesn't get reproduced in this reply ?

Basically, there is a weird behavior with the Split() method. Based on my test, it cannot split on more than one character. If we would split on a delimiter character, such as /, # or $, for example, that would work. But, a carriage return is usually a CR+LF. So, it splits. But, it adds the LF as the first character of the line. This doesn't occur on the first line however as there is no previous line before that one. The only way I have found to make it work so far is by scanning all the lines, generated by the Split(), and removing all LF in front.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform