Need a little clarity. Please provide

-- datatypes for in_buyPrice and in_discount
-- "real world" sample values for in_buyPrice and in_discount.

We'll play with the parentheses until you get what you want.

Bruce

------ Original Message ------
From "Tom Hart" <[email protected]>
To [email protected]
Date 1/23/2025 1:27:07 PM
Subject Re: Re[2]: [RBASE-L] - Stumped

Discount is set to real and set to a whole number so I want to be discounted that much like 30% of 100

On Thu, Jan 23, 2025, 3:07 PM Bruce Chitiea <[email protected]> wrote:
If you want in_buyPrice * (1-in_discount ) to be divided by 100:

( ( in_buyPrice * (1-in_discount) ) /100 )

If you want in_byPrice to multiply (1-in_discount)/100

( in_buyPrice * ( (1-in_discount)/100) )

Bruce

------ Original Message ------
From "'Tony IJntema' via RBASE-L" <[email protected]>
To [email protected]
Date 1/23/2025 12:50:31 PM
Subject Re: [RBASE-L] - Stumped

is the closing bracket at the right place or should it be (1-In_discount)/100

Tony

Op 23-01-2025 om 20:26 schreef Tom Hart:
I have the following variables in a new database and cannot get In_SellingPrice to populate a field in the form. I have the same code but with other names in an older database. I am using the current RB11. THe cost and discount returns correct values. Any clues:

Tom Hart


image.png

--
For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rbase-l/CABX9BNdTn_AfO7TAYKoez_2csmKz3%3D0Ad-F%2BFoyyCaXXRRb1Hg%40mail.gmail.com <https://groups.google.com/d/msgid/rbase-l/CABX9BNdTn_AfO7TAYKoez_2csmKz3%3D0Ad-F%2BFoyyCaXXRRb1Hg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rbase-l/d7acfd21-cfec-419c-be5d-fb8f8f255fd5%40cio-bv.nl <https://groups.google.com/d/msgid/rbase-l/d7acfd21-cfec-419c-be5d-fb8f8f255fd5%40cio-bv.nl?utm_medium=email&utm_source=footer>.

--
For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rbase-l/emaa857a47-9571-4e3c-bcd0-1bf8d9ed0d5a%40fbb158ec.com <https://groups.google.com/d/msgid/rbase-l/emaa857a47-9571-4e3c-bcd0-1bf8d9ed0d5a%40fbb158ec.com?utm_medium=email&utm_source=footer>.

--
For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rbase-l/CABX9BNfBty5CKM1VLRhNn1TW3CWAnegirr73DsN8C0GST3oPYg%40mail.gmail.com <https://groups.google.com/d/msgid/rbase-l/CABX9BNfBty5CKM1VLRhNn1TW3CWAnegirr73DsN8C0GST3oPYg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/em2db2f9a2-ef4a-48a3-a116-a204fe50e018%40fbb158ec.com.

Reply via email to