Today we noticed sum unused applications which wood be a good idea to remember them.
For the Digital Downloads Project, these appeared:
Const _cdecPriceperDownload As Decimal = 0.99D
This allows us to keep the pricing constant.
Dim strNumberofSongs As String
Dim intNumberofSongs As Integer
Dim decTotalCostofDownloads As Decimal
These are our declarations that the next step will be to give them an application
strNumberofSongs = Me.txtNumberofDownloads.Text
This allows the strNumberofSongs to equal the txtNumberofDownloads
intNumberofSongs = Convert.ToInt32(strNumberofSongs)
this allows the intNumberofSongs to be converted
decTotalCostofDownloads = intNumberofSongs * _cdecPriceperDownload
This process allows the calculation between the number of songs selected and the price per download to give us a cost for the songs.
Me.lblTotalCostofDownloads.Text = decTotalCostofDownloads.ToString("C")
This allows the cost to be shown as currency
Me.txtNumberofDownloads.Clear()
Me.lblTotalCostofDownloads.Text = ""
Me.txtNumberofDownloads.Focus()
This process allows the clear button to erase the text that is within the textbox.
Me.Close()
This allows the close button to close the program
I hope this has been handy for ppl so cya on Friday or weneva i cya
and remember to keep watching the skies........or sum Visual Studio Tutorials lol.
Monday, February 23, 2009
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment