Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a reorg for .NET Framework 4
Message
From
25/07/2010 15:10:02
 
 
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:
01473784
Views:
38
>Using the char[] approach results in a string being written to the array for anything between a LF and CR (which if fine) but also for anything between CR and LF which, in the scenario, is an empty string. If you didn't have any genuinely empty strings between a LF and CR then using the StringSplitOptions.RemoveEmptyEntries would be fine but that wasn't the case.....

So, it is normal that with the previous code it was not working. I am using yours now and all seems to be ok.

>BTW - why bother using a StringBuilder in the LoadString() method ?

The LoadString() method is the initial method that will be called in this class to initalize a few things. One of them is to load everything into a stringbuilder because other methods need it. I do understand however that I could change the Split() line to deal directly with tcString.
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
Next
Reply
Map
View

Click here to load this message in the networking platform