logbook report need help to finish

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
thetib
Posts: 23
Joined: Sat Oct 31, 2020 16:29

logbook report need help to finish

Post by thetib »

hello I am making my logbook report
there was no model in french so I created one by taking inspiration from the different existing models
I could of course make it available on the forum if someone is interested

I'm not very good at computers
I'm stuck on a problem

my logbook report shows me the water temperature by rounding the result
I would like to keep a decimal after the comma

here is the line of code I am using (it allows me to display the water temperature or to display me "-" if it is not available) :

if (isnull (LogWatertemp) or LogWatertemp = 0, "-", Str $ (LogWatertemp, 0,0) + "" + UnitTemperature)

how to have the temperature with decimal?

thank you

as attached an
dive 96_compressed.pdf
example file of my logbook report
(136.23 KiB) Downloaded 385 times
divinglog
Site Admin
Posts: 5764
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: logbook report need help to finish

Post by divinglog »

Hello

You can use this:

Code: Select all

Fstr$(LogWatertemp,"-#&")+" "+UnitTemperature
thetib
Posts: 23
Joined: Sat Oct 31, 2020 16:29

Re: logbook report need help to finish

Post by thetib »

thank you for your answer but with

Code: Select all

Fstr $ (LogWatertemp," - # & ") +" "+ UnitTemperature
the value is always rounded to the unit
I would like to display the temperature with a decimal point

I would like that when the value is not informed the report does not express "0" but "-" it is for that that I had to use

Code: Select all

isnull (LogWatertemp) or LogWatertemp = 0," - "

tib
divinglog
Site Admin
Posts: 5764
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: logbook report need help to finish

Post by divinglog »

OK, try this format:

Code: Select all

str$(LogWatertemp,"###&.#")
thetib
Posts: 23
Joined: Sat Oct 31, 2020 16:29

Re: logbook report need help to finish

Post by thetib »

thks I fix the probleme
Post Reply