![]() |
VB5 - Decimal places are missing - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: VB5 - Decimal places are missing (/showthread.php?tid=575) |
VB5 - Decimal places are missing - Kernelpanic - 06-29-2022 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. ![]() RE: VB5 - Decimal places are missing - Kernelpanic - 06-29-2022 ![]() RE: VB5 - Decimal places are missing - bplus - 06-29-2022 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. RE: VB5 - Decimal places are missing - Kernelpanic - 06-29-2022 (06-29-2022, 05:29 PM)bplus Wrote: Are you using a numerical text box with decimal set in properties? Yes, it are text fields. There's something wrong with it, or it's jinxed. ![]() 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 ![]() ![]() RE: VB5 - Decimal places are missing - Kernelpanic - 06-30-2022 Now I found the mistake. Gemeinkosten = Val (Fertigungskosten * 8) / 100 Correct is: Gemeinkosten = (Fertigungskosten * 8) / 100 RE: VB5 - Decimal places are missing - bplus - 06-30-2022 Aha! and Miss Monique link pretty nice too. ![]() |