I'm a newbie in .NET and I started with VB.NET 2005 (Framework 3.5).
I make an application for my store.
Here's a piece of code :
Output :
Store A
Supply : 31
Sold : 69
Store B
Supply : 64
Sold : 36
Store C
Supply : 15
Sold : 85
Problem :
Every week I supply 100 items (4 different types) for each store. (e.g Shirt, T-Shirt, Pants and Short Pants), 25 items for each type.
What I want to do is to make an output with more details, and yet I can't find a code to give me the result.
Store A
Shirt
Supply : 9
Sold : 11
T-Shirt
Supply : 12
Sold : 8
Pants
Supply : 10
Sold : 10
and so on....
Could anyone help me with my array problem? Any help would be much appreciate. Thank you.
I make an application for my store.
Here's a piece of code :
VB.NET:
Dim arrStore() As String = {"A", "B", "C"}
Dim arrSupply() As Integer = {31, 64, 15}
Dim arrSold() As Integer = {69, 36, 85}
For i As Integer = 0 To arrStore.Length - 1
txtStore.Text = txtStore.Text & _
"Store " & arrStore(i) & vbCrLf & _
"Supply : " & arrSupply(i) & vbCrLf & _
"Sold : " & arrSold(i) & vbCrLf & vbCrLf
Next
Output :
Store A
Supply : 31
Sold : 69
Store B
Supply : 64
Sold : 36
Store C
Supply : 15
Sold : 85
Problem :
Every week I supply 100 items (4 different types) for each store. (e.g Shirt, T-Shirt, Pants and Short Pants), 25 items for each type.
What I want to do is to make an output with more details, and yet I can't find a code to give me the result.
Store A
Shirt
Supply : 9
Sold : 11
T-Shirt
Supply : 12
Sold : 8
Pants
Supply : 10
Sold : 10
and so on....
Could anyone help me with my array problem? Any help would be much appreciate. Thank you.