calcular porcentagens

Discussion in 'Portuguese Forum' started by whitehat, Jul 3, 2008.

  1. whitehat

    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
     

    Attached Files:

  2. klaus

    klaus Expert Licensed 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
     

    Attached Files:

  3. Cableguy

    Cableguy Expert Licensed User

    Klaus, you're everywere...

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

    whitehat New Member

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

    Cableguy andas desaparecido :p
     
  5. klaus

    klaus Expert Licensed User

    Well, I am pleased if I can help.
    Even in languages I don't speak, but with the Google translation and some source code it is possible.

    Regards
     
  6. Cableguy

    Cableguy Expert Licensed User

    Estou de cama....ando meio f*dido das costas...
     
  7. klaus

    klaus Expert Licensed User

    Hi Paulo,
    Unfortunately with this
    Google translator is lost, neither in English, French nor in German.

    Best regards.
     
  8. Cableguy

    Cableguy Expert Licensed User

    @Klaus

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

    klaus Expert Licensed 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: Jul 4, 2008
  10. Cableguy

    Cableguy Expert Licensed 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...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice