calcular porcentagens

whitehat

New Member
Boas pessoal estou aprender esta linguagem e estou com dificuldades em calcular em B4P.
eu fiz um form com uma combobox etc... onde escolho
as porcentagens que depois quero calcular e mostrar em outra textbox o resultado e nao sei bem como fazer isto nesta linguagem, eu ja fiz o programa para windows e queria converter para B4P alguem me ensina ?

"+5%" = 0.05
"-5%" = 0.05
"+15%" = 0.15
"-15%" = 0.15
"+20%" = 0.20
"-20%" = 0.20
"+25%" = 0.25
"-25%" = 0.25
"+35%" = 0.35
"-35%" = 0.35
"+40%" = 0.40
"-40%" = 0.40
"+45%" = 0.45
"-45%" = 0.45

count = (valor * percent)' + (valor + count)
result = (valor + count)

count = (valor * percent)' + (valor + count)
result = (valor - count)


Programa para Windows: PDD
 

Attachments

  • programa de descontos.sbp
    1.5 KB · Views: 343

klaus

Expert
Licensed User
Longtime User
Here you are.
I have joined an example of what it could look like.
If you have any questions about the source code please feel free to ask.

Google translation !?
Aqui você é.
Tenho juntou um exemplo do que poderia ser semelhante a este.
Se você tem alguma dúvida sobre o código fonte não hesite em perguntar.

Best regards
 

Attachments

  • programa de descontos New.sbp
    2.7 KB · Views: 352

Cableguy

Expert
Licensed User
Longtime User
Klaus, you're everywere...

Thanks for helping out in the portuguese forum....
 

whitehat

New Member
Here you are.
I have joined an example of what it could look like.
If you have any questions about the source code please feel free to ask.

Google translation !?
Aqui você é.
Tenho juntou um exemplo do que poderia ser semelhante a este.
Se você tem alguma dúvida sobre o código fonte não hesite em perguntar.

Best regards

wow klaus thanks :sign0060: I will learn a lot with your how to.

Cableguy andas desaparecido :p
 

Cableguy

Expert
Licensed User
Longtime User
Estou de cama....ando meio f*dido das costas...
 

Cableguy

Expert
Licensed User
Longtime User
@Klaus

I used a slang word, meaning that ihave a sored back, injured at work...
 

klaus

Expert
Licensed User
Longtime User
Hi Paulo,

I am sorry for you, and I wich you a speedy recovery.
Best regards.

Lamento por você, e eu que lhe uma rápida recuperação.
Atenciosamente
(still Google)

I am sorry for you and I to him a speedy recovery.
Regards
(Google backwards)
funny isn't it ?
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
It did take a few laughts from me...

Thanks for the Speedy recovery wishes...
I'll be entering in hollidays mode tomorow...what a way to go...
 
Top