Log comments

Discussions about Diving Log 6.0 - questions and hints
Post Reply
fatuus
Posts: 36
Joined: Sat Apr 07, 2007 14:53
Location: Sweden
Contact:

Log comments

Post by fatuus »

Hi
I use the field LogCommentsTXT to print the comments on my logbook.
To make it easier to see how it would look like I use "plain text" in the program.
Here is the question:
When i make a row-break, there is a clear row beetween when i print it, not just a break.
Do you know why? It look as it should be when i write it, but not when i print.

writng
"i write something here and then makes a
row-break with the return"

print
"i write something here and then makes a

row-break with the return"

/Erik
divinglog
Site Admin
Posts: 5779
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Post by divinglog »

Hi Erik

I'm not sure why this happens, I think for some reason the report designer interprets the line break wrong. But you can fix this in the designer. Use this formula instead of LogCommentsTXT:

Code: Select all

StrSubst$ (LogCommentsTXT,Chr$ (10))
This will change the Chr(10) & Chr(13) linebreak used by Diving Log to a simple Chr(13) linebreak. As an alternate you can use also this code:

Code: Select all

StrSubst$ (LogCommentsTXT,Chr$ (13))
This will keep the Chr(10) instead of Chr(13). Maybe I'll do this replacement in future directly in Diving Log, so this formula is no longer needed.

Sven
fatuus
Posts: 36
Joined: Sat Apr 07, 2007 14:53
Location: Sweden
Contact:

Post by fatuus »

Thank you Sven!
Post Reply