Much thanks for the reference KT. Now all I need to do is figure out where the CRLF characters are disappearing from the log strings. Looks like they're missing on import with the SQL command. I wrote the output of the SQL statement ($Logs) to a text file, and then opened that with a Hex Editor to see if either a x0D or x0A character was there. Nope. Don't see anything that should filter off CRLF's, so gotta go do some looking to see if I see anything about disappearing CRLFs in the message boards.
Of note, I added the DESC modifier to the ORDER BY, to sort the records in descending order (last one first). Then, I also modified the code to store the last log in the Log section, and any other logs in the Notes section of $d_UserNote by appending all prior logs to the end of $ExistingNote. Works nicely if I can now find a way to restore the CRLF's it seems to be filtering off. They show in the HTML view, so I'm sure it's something I'm missing.
I'll have to rename this copy so I don't step on what I've done when I check for versions.
I'll post another note with what I'm talking about shortly.
Of note, I added the DESC modifier to the ORDER BY, to sort the records in descending order (last one first). Then, I also modified the code to store the last log in the Log section, and any other logs in the Notes section of $d_UserNote by appending all prior logs to the end of $ExistingNote. Works nicely if I can now find a way to restore the CRLF's it seems to be filtering off. They show in the HTML view, so I'm sure it's something I'm missing.
I'll have to rename this copy so I don't step on what I've done when I check for versions.
I'll post another note with what I'm talking about shortly.