Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Variable enum?

Variable enum?

Scheduled Pinned Locked Moved Visual Basic
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DJLarZ
    wrote on last edited by
    #1

    Hi. I use the Enum statement regularly, and I'm wondering if there's a similar statement where I can change the member's values? Because the Enum's members get declared as constants.. Please help me :rolleyes: ---- Dim Sleepy as Boolean = True If Me.Sleepy = True Then Goto Sleep End If ----

    D K 2 Replies Last reply
    0
    • D DJLarZ

      Hi. I use the Enum statement regularly, and I'm wondering if there's a similar statement where I can change the member's values? Because the Enum's members get declared as constants.. Please help me :rolleyes: ---- Dim Sleepy as Boolean = True If Me.Sleepy = True Then Goto Sleep End If ----

      D Offline
      D Offline
      Duncan Edwards Jones
      wrote on last edited by
      #2

      Nah - how about a Generics.Dictionary(Of String, Integer) ? '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

      1 Reply Last reply
      0
      • D DJLarZ

        Hi. I use the Enum statement regularly, and I'm wondering if there's a similar statement where I can change the member's values? Because the Enum's members get declared as constants.. Please help me :rolleyes: ---- Dim Sleepy as Boolean = True If Me.Sleepy = True Then Goto Sleep End If ----

        K Offline
        K Offline
        Kschuler
        wrote on last edited by
        #3

        Or you could just make your own class with public variables and a public enum.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups