Not being a Java programmer myself, I'm not sure what Java stuffs into Constants.CarriageReturn. If it is an actual carriage return, as in character 13, the programmer is Doing It Wrong(TM) (I realize that I'm stating the obvious here, but still). The only recent platform that will give you a new line from a lone \r -- that I know of, anyway -- is Classic Mac OS.
\n is designed to be transformed into the operating system's new line character/sequence of choice so that it would be a valid escape sequence in any environment. \n isn't just more convenient in this case, it's the correct way of doing it.
S
Spectere
@Spectere
0
Reputation
2
Posts
21
Profile views
0
Followers
0
Following
Best posts made by Spectere
This user hasn't posted anything yet.
Latest posts made by Spectere
-
RE: When everything looks like a hammer ...
-
RE: Proper Error Trapping Pattern
@KattMan said:
This then works exactly like Try-Catch-Finally with still only one point of exit and the ability to clean up any local resources regardless of error. The one problem here is if you throw an error in cleanup, because then yuo get a never ending loop.
You should be able to rectify that by putting an "on error goto 0" line immediately after the label to disable error handling if you want it to work like .NET. I could be wrong, of course. I haven't had to touch VB6 in years (thank goodness!) but I'm pretty sure you could disable error handling even after an error has occurred.