Skip to Content
author's profile photo Former Member
Former Member

PB Newbie - Auto rounding of decimals

Hi PB Gurus,

I'm trying to save into a table a decimal value, I tried to capture the variable in a messagebox before my save event, just to check if it's the same:

But when the event was triggerd, it rounds the value.

Im using PB12.0 Classic and SQL Server 2008.

the field is decimal(10,2).

TIA,

decimal_1.jpg (18.0 kB)
decimal_2.jpg (4.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2016 at 07:36 AM

    How do you get the value?

    --> you have to use u_dw.GetItemDecimal(... (not GetItemNumber)

    --> store the value in a dec-Variable (not an integer)

    Best regards

    Heiko

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.