VB Loop through problem

Discussion in 'Software' started by djrx, May 13, 2013.

  1. djrx

    djrx Private E-2

    I have a structure (in a module for use between multiple forms):

    Code:
    Module Module1
        Public Structure walls
            Dim length As Integer
            Dim width As Integer
            Dim wallpaper As String
        End Structure
    
        Public myWalls As walls
        Public colWalls As New Collection
    
    End Module
    
    This is an assignment - so not looking for a direct answer but an idea on what i should be doing.

    only information that is needed across forms is put in the structure. The assignment requires a calculator to work out cost of the quote, how much of each material needs using, the area etc etc..


    one of the outputs required is having a datagridview that outputs various info about the quotes. The info held in the dgv is changed on selecting different options. I've done all but one of the options it's only a small part of the mark, but i don't want to hand in an incomplete program :

    so i need to look through for wallpaper type say er "embossed" add together the lengths and add together the widths. Multiply the total length by total width and have that output as say wallpaper type: embossed, total area: 5362.


    will i need to use "for each"?

    I cant see how to do it.
     
  2. grovalmitch

    grovalmitch Private E-2


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds