Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB5 - Decimal places are missing
#1
A VB5 program, almost like QBasic. - The decimal places are not calculated, but why not? I just can't find the error. Everything is the same as the 2nd screenshot, everything is correct there.

Does anyone know where the error is? Thanks.

[Image: Angebot-VB5-Nachkomma-Fehlt.jpg]
Reply
#2
[Image: KW-PS-Nachkomma-korrekt.jpg]
Reply
#3
Are you using a numerical text box with decimal set in properties?

Probably not because I see Print Using and template...

I am assuming there are Numerical Text Boxes because Fellippe has them in InForm. It's too long since I worked with VB for Dos to remember anything about Numerical text boxes for older version than VB5 but seems to me a likely control to have in VB early on.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#4
(06-29-2022, 05:29 PM)bplus Wrote: Are you using a numerical text box with decimal set in properties?

Probably not because I see Print Using and template...

I am assuming there are Numerical Text Boxes because Fellippe has them in InForm. It's too long since I worked with VB for Dos to remember anything about Numerical text boxes for older version than VB5 but seems to me a likely control to have in VB early on.

Yes, it are text fields.
There's something wrong with it, or it's jinxed.  Dodgy

The small sample program "Mehrwertsteuer" works again, the results are absolutely correct.

PS: This is an English version of VB5. Entries have to be with a dot "."
I need something to relax now:    Miss Monique   Big Grin

[Image: Mehrwertsteuer-Korrekt.jpg]
Reply
#5
Now I found the mistake.

Gemeinkosten = Val (Fertigungskosten * 8) / 100

Correct is: Gemeinkosten = (Fertigungskosten * 8) / 100
Reply
#6
Aha! and Miss Monique link pretty nice too. Smile
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I must be missing something obvious with this code Dav 8 1,456 09-16-2024, 07:47 PM
Last Post: Pete
  Color picker bug or just something I'm missing OldMoses 8 1,701 08-10-2023, 01:28 AM
Last Post: OldMoses
  Any math experts know what I'm missing here? [Solved] Pete 24 4,093 09-26-2022, 07:00 PM
Last Post: Kernelpanic
  What am I missing here? TerryRitchie 5 1,269 09-09-2022, 06:54 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)