An IF THEN Statement - Using The Second Discount Percent In Any Of The Bronze?
Jun 14, 2009
the code below shows an if statement that is determining a customer type and a discount percent for that customer.But when I run the code it only ever reads the first discount percent even though the allocated price range is above the first discount percents range and should therefore give the second discount percent and i cant figure out why it is not using the second discount percent in any of the bronze, silver or gold statements.
I am using visual basic 2008 amd creatomg a datagrodview format like below [code] Now I wnat to get total balance in total column after less discount in percentage with ENTER EVENT proceedure and get the whole total column balance in a textbox i.e Net BalanceTextBox. Please tell me how to calculate discount in percent % and get total in total column and also tell me how to move cursor in next cell instead of bottom row in datagridview.
Need to display the Gold, Silver, And Bronze members in a list box from a TXT file. Have problems isolation each group. When I run the program all of the name in the TXT file come into the list box.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Dim strMembers As String, objStreamReader As System.IO.StreamReader
I have amend my application to calculate 10% discount but dont know how to assign it or the code. i am opposed to assign the code to calculate 10% if the customer is hiring my goods for more than 7 days, but if its less than 7 days i dont want the form to calculate the discount.
I have a Form with textboxes,combobox and a button to calculate the discount level (comboBox) discount total (textbox), tax total (textbox) and total all these up into the total order (textbox) this is working except the discount total textbox,here's my code i have so far.[code]...
I need advice on how to implement. I have two objects ReceiptLine and Discount. Cashier scans item and a receiptline object is added. If the added ReceiptLine object have a Discount Id then, it has to lookup in Discount object and issues discount after validation. I have problem in validation. Here is the situation, cashier scans the item as follows
I am having trouble adding a 5% discount to a subtotal of 50.00 or more and then have it display in the discount box and then having the total show up in the total box.
Here is my code. Public Class GroceryStore Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculateButton.Click 'Calculate totals Dim subtotal As Double [Code] .....
I need advice on how to implement. I have two objects ReceiptLine and Discount. Cashier scans item and a receiptline object is added. If the added ReceiptLine object have a Discount Id then, it has to lookup in Discount object and issues discount after validation. I have problem in validation. [code]
How do I calculate a 15% discount in visual basic in when creating a windows application.I have two radio buttons Yes and No and when yes is selected a 15% discount is subtracted from the total price.So would I just say 15% as 0.15 or should I name the 15% as a constant?
I made a hotel quote form where I want to add a discount box where the user can enter a percentage discount off the total price. What is the code to do that? [code]
I have been given some instructions to percent encode a URL twice. I know how to percent encode a URL once but how do you do it twice? Surly when it is encoded once, it will be the same when encoded again.
I am trying to filter fields in a table that contain percent (%) and apostrophe (') characters. I kow that to filter an apostrophe you need to add another apostrophe (''). However, when a text contains the percent (%) character in combination with an apostrophe (') character, an exception is thrown. Also, when using the % character in a filter string, it will be function as an "*" (fields starting or ending with). I need the % to be considered as a character whenever the % makes part of a string in the field.
Dim TheTable As New DataTable Dim col As New DataColumn("Col1") TheTable.Columns.Add(col) Dim TheRow As DataRow = TheTable.NewRow
I need help getting a progress bar to show percent in it. I want to have the percent in the middle of the progress bar, like is sometimes seen in a few programs. I have googled this, and can't find anything. I found something on The CodeProject, but it was just a label and drawing a rectangle behind it. I would like the actual progress bar that is available through the toolbox.
Is possible get the percent of a word in the content of a richtexbox? if yes, can you give me some example?
For example if I have 100 words in a richtextbox and I want to know what is the percent of a word in this content (for example if a word called "music" is repeated 10 times = 10%. If this is not possible in a richtextbox, is possible in other box like textbox?
i know this code doesn't work as it looks, just loads the location by pixels. this is just a question, hopefully with a working code for a marked answer..so much work to do and so many choices to choose from.
I've been at this for an hour, but I can't seem to format a string as a percent while I am looping through a datatable. The string value that is being passed in is "3.22" Public Function securityDt() As DataTable Dim secMasterDt As New clsDataSecurity Dim dt As New DataTable dt = secMasterDt.getSecurityMasters() For Each row As DataRow In dt.Rows [Code] .....
I'm writing a small App that mimic's the Task Manager and I can get all the running processes images names and physical Memory usage but can't seem to figure out how to get the CPU usage Percent for each process.
opps forgot and as well as the indivdual process usage percent, so the precent each process is using....
i followed a few tutorials on here to create a calculator in VB.NET. But i am having trouble getting the percent button working properly.I have tried to come up with some things but nothing i have tried is working.I used this Basic Calculator VB.Net and this one Create a Calculator.I have searched google for an answer but it seems what i have is not working.Im not sure exactly what is needed so i will post all of the code i have. [code] My percent does not work it multiply's by a random number is seems.I am new to VB.NET so im not sure what i am missing.
I have this issue where for every 1% below a 95% threshold a charge of £67 is added. For instance if the percentage drops to 70% I would need a method of totalling the charge for every percent.
Would I need to use a Do....While loop then the if...then statements?
We were given this and for some reason I can't get this to work right. Here is the whole thing:The following code should display three rows of percent signs in the msgLabel. The first row should contain one percent sign, the second row should contain two percent signs, and the third row should contain three percent signs. However, the code is not working correctly.
I'm trying to build a function where I can pass in a percentage and it would have that percentage to return a true value. However I'm completely drawing a blank on how to make on such function.
I'm guessing the reason this macro isn't doing what I want it to is because of an error on my part in the code. Basically, I want the values in the cells pointed out in the code to be increased by 10% each time the button is pushed.
Here is the code: Sub Add10percent() IncreaseColumnValuesBy10Percent 2, 0.1 IncreaseColumnValuesBy10Percent 4, 0.1 IncreaseColumnValuesBy10Percent 6, 0.1 IncreaseColumnValuesBy10Percent 8, 0.1 [Code] .....