Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
example of % discount calculation in Informpe with textBoxes
#1
Hi
the demo has the goal to use textboxes as string containers and transform the strings to make calculations.

here a screenshot

[Image: Percentage-Calculation-with-Text-Boxes.jpg]

user help:
1. type the price in the price textbox (the first from the top)
2. type the Discount Percentuage in the Discount Percentage textbox (the second from the top)

3. click on the Calculation button to get the Effective Discount amount showed in the third textbox from the top
and the Final Discounted Price showed in the forth textbox from the top.

4. click on Reset to cancel previous data
5. click on Language button (the first from the left) to localize application to English or Italian

Installation help:
1. download the compressed file attached here the .7z code 
.7z   Discount.7z (Size: 2.06 KB / Downloads: 91)
2. download InformPe and install it, or if you haven't time to spend download the Inform packaged libraries from this other thread at the bottom of the first post of the thread you find the attached Informpe Libraries
3. load Discount.bas into QB64pe IDE and compile with F5 or by menu.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Example of 4 BASIC operation calculator in InFormpe and Numeric Textbox TempodiBasic 2 628 06-24-2025, 06:25 AM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)