Results 1 to 5 of 5

Thread: [RESOLVED] Quick silly vb question!

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    6

    Resolved [RESOLVED] Quick silly vb question!

    First of all , sorry to waste a thread on this!

    I can't remember how to do this...


    when you dim something so in your code you can do it like..

    dim item(size as string, link as string, value as string)


    item.size = blah
    item.link = blah
    item.value = blah


    Basicly so when you put a . it will show you the list of things you dimmed

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Quick silly vb question!

    Probably You are talkin about : Type as:
    Code:
    Public Type RECT
                Left    As Long
                Top     As Long
                Right   As Long
                Bottom  As Long
    End Type
    Then, You can declare any other variable as the defined Type
    Code:
    Dim XXX as RECT
    And when You write XXX. appears Left, Top, Right,Bottom

  3. #3
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Quick silly vb question!

    Wouldn't that be a structure, you dim your structure and then dim a variable as that structure and go from there?
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Quick silly vb question!

    Looks like a Type expression
    Code:
    Type myitem 
      size As String
      link As String
      value As String
    End Type
    
    Dim item As myitem
      '
      '
    Privaye Sub SomeSub()
      item.size = blah
       '
       '
    End Sub

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    6

    Re: Quick silly vb question!

    thanks guys thats what i needed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width