Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Other languages > Portuguese Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

calcular porcentagens

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2008, 12:08 AM
Newbie
 
Join Date: Jun 2008
Posts: 3
Default calcular porcentagens

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
File Type: sbp programa de descontos.sbp (1.5 KB, 12 views)
Reply With Quote
  #2 (permalink)  
Old 07-03-2008, 12:10 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

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
File Type: sbp programa de descontos New.sbp (2.7 KB, 17 views)
__________________
Klaus
Switzerland
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 01:11 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Klaus, you're everywere...

Thanks for helping out in the portuguese forum....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 02:10 PM
Newbie
 
Join Date: Jun 2008
Posts: 3
Default

Quote:
Originally Posted by klaus View Post
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 I will learn a lot with your how to.

Cableguy andas desaparecido :P
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 02:59 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

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
__________________
Klaus
Switzerland
Reply With Quote
  #6 (permalink)  
Old 07-03-2008, 04:55 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Estou de cama....ando meio f*dido das costas...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #7 (permalink)  
Old 07-03-2008, 09:31 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Paulo,
Unfortunately with this
Quote:
Estou de cama....ando meio f*dido das costas...
Google translator is lost, neither in English, French nor in German.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #8 (permalink)  
Old 07-04-2008, 08:04 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

@Klaus

I used a slang word, meaning that ihave a sored back, injured at work...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #9 (permalink)  
Old 07-04-2008, 12:56 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

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 ?
__________________
Klaus
Switzerland

Last edited by klaus : 07-04-2008 at 01:00 PM.
Reply With Quote
  #10 (permalink)  
Old 07-04-2008, 01:15 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

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...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 01:04 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0