First: Ok so I'm trying to do a project in my beginning VB .Net class. We are supposed to be taking information from 5 different sections of a form and store them into an array and then call upon them later. We have Name, Address, City,State, and Zip. How would I go about saving the information into an array and then calling upon it later through File IO?
Second: I'm having a problem converting my string into a decimal. Whenever I calculate the price of the order I get 3-4 decimal places. Here is a little snippet of my code for the this:
Case "AK"
PriceWithoutTax = ((Val(txtRegular.Text * 8.5) + (Val(txtDecaf.Text) * 10.5)))
lblSalesTax.Text = ((Val(PriceWithoutTax * 0.0)))
lblSalePrice.Text = PriceWithoutTax
lblTotalPrice.Text = (Val(PriceWithoutTax * 0.0) + (Val(PriceWithoutTax)))
I have dimmed pricewithout tax as a decimal and stateselect as a string. The stateselect is based off a drop down list.
Any help would be greatly appreciated!
Second: I'm having a problem converting my string into a decimal. Whenever I calculate the price of the order I get 3-4 decimal places. Here is a little snippet of my code for the this:
Case "AK"
PriceWithoutTax = ((Val(txtRegular.Text * 8.5) + (Val(txtDecaf.Text) * 10.5)))
lblSalesTax.Text = ((Val(PriceWithoutTax * 0.0)))
lblSalePrice.Text = PriceWithoutTax
lblTotalPrice.Text = (Val(PriceWithoutTax * 0.0) + (Val(PriceWithoutTax)))
I have dimmed pricewithout tax as a decimal and stateselect as a string. The stateselect is based off a drop down list.
Any help would be greatly appreciated!