vb.net - Multidimensional array to grid style textbox with input box, including a sum of array and retrieve a specific day -


so, can't figure out how user able retrieve number of products completed day of week of month.

after execution of 4 weeks done, user prompted enter week , day of week inputbox’s wish retrieve information for. assume users enter day of week in string format, such “monday” or “tuesday” etc

there have input box, , that's thing, can't figure out how code user can chose day , week inputting inputbox. have make 2 input boxes retrieve day , week?

toys(day, 0) = inputbox("enter day")  toys(0, week) = inputbox("enter week") 

also, need full sum of whole array, when @ picture, has total of 210 , can't figure out how full sum.

this code output far.

private sub btnexecute_click(sender object, e eventargs) handles btnexecute.click      dim toys(4, 3) string     week integer = 0 3         day integer = 0 4             toys(day, week) = inputbox("please enter value day " & cstr(day + 1) & " in week " & cstr(week + 1) & ".", "enter value", (value + 1))         next day     next week      txtoutput.text &= vbtab + "mon" + vbtab + "tue" + vbtab + "wed" + vbtab + "thur" + vbtab + "fri" + vbcrlf      week integer = 0 3         txtoutput.text &= "week " + (week + 1).tostring + " "         day integer = 0 4             txtoutput.text += vbtab + toys(day, week)             = 0 10 - toys(day, week).length                 txtoutput.text += " "             next             if day = 4                 txtoutput.text &= vbcrlf              end if         next     next end sub 

here expected output.

image

private sub btnexecute_click(sender object, e eventargs) handles btnexecute.click     dim toys(4, 3) string     week integer = 0 3         day integer = 0 4             toys(day, week) = "..."         next day     next week     txtoutput.text &= "                   mon" + vbtab + "tue" + vbtab + "wed" + vbtab + "thu" + vbtab + "fri" + vbcrlf     week integer = 0 3         txtoutput.text &= "week " + (week + 1).tostring + "      "         day integer = 0 4             txtoutput.text += toys(day, week)             = 0 10 - toys(day, week).length                 txtoutput.text += " "             next             if day = 4                 txtoutput.text &= vbcrlf             end if         next     next end sub 

you may have change number of spaces.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -